Replace double quotes within double quotes
Posted: Wed Apr 09, 2008 11:14 pm
Hi, tried searching and couldn't find an answer, this is the closest thread I could find: http://forums.textpad.com/viewtopic.php?t=7698
I am trying to find and replace double quotes that are within another set of double quotes between commas with single quotes, i.e.:
I am trying to get the output to look like:
with the double quotes within other double quotes are changed to single quotes.
Within the outer double quotes there are commas, periods, /, and - too. The inner double quotes appear anywhere within the outer double quotes.
I have tried a few things and
that seem to match some of the examples, but can't figure out to get it down to just matching/replacing the inner double quotes.
Any ideas?
I am trying to find and replace double quotes that are within another set of double quotes between commas with single quotes, i.e.:
Code: Select all
,12344,"text",absd,5830,"This is an, "example of my problem".",1234
,4346,"here is "another example" of the problem.",lded,345435,abde,5365
,9865434,"this is, the "last example". can you help.",abed,5465,"eadd",6786Code: Select all
,12344,"text",absd,5830,"This is an, 'example of my problem'.",1234
,4346,"here is 'another example' of the problem.",lded,345435,abde,5365
,9865434,"this is, the 'last example'. can you help.",abed,5465,"eadd",6786Within the outer double quotes there are commas, periods, /, and - too. The inner double quotes appear anywhere within the outer double quotes.
I have tried a few things
Code: Select all
,("[^",]*("[^",]*)*"[^",]*."),Code: Select all
,"[^",]*"[^",]*".*",Any ideas?