I need to parse a string ; as a delimiter. But don't need to parse the text if it is within double quotes.
Example I need to parse
this ; "but not ; this"
For this I have come up with regex pattern which works fine.
;(?=(?:(?:[^\"]*\"){2})*[^\"]*$)
Now if text contains escaped quotes, the above pattern doesn't work.
I need to parse
this ; "but \" not ; this"
Could you help me with the pattern which omits escaped quotes within quotes?