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",6786
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",6786
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
Code: Select all
,("[^",]*("[^",]*)*"[^",]*."),
Code: Select all
,"[^",]*"[^",]*".*",
Any ideas?