I have a string vaguely like this:
foo,bar,c;qual=\"baz,blurb\",d;junk=\"quux,syzygy\"
that I want to split by commas -- but I need to igno
Rather than use lookahead and other crazy regex, just pull out the quotes first. That is, for every quote grouping, replace that grouping with __IDENTIFIER_1
or some other indicator, and map that grouping to a map of string,string.
After you split on comma, replace all mapped identifiers with the original string values.