Click here to Skip to main content
15,890,845 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I've a string in the below format -

"apple"|"Mango"|""|"Oran"ge"|"pea | ch"

I want to get the data in the following format -

"apple"|"Mango"|""|"Orange"|"peach"

So basically I want a regular expression to identify a double quote or a pipe (and only these two chars) which has a char(a-z or A-Z or a number 0-9) on its BOTH sides (Oran"ge and Pea | ch) and replace it with a blank.

Thanks a lot for your help.
Posted

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900