http://qs321.pair.com?node_id=607841


in reply to Help with Double Double Quotes regular expression

I had that problem when writing SQL::Tokenizer. I ended with this:

".*?(?:(?:""){1,}"|(?<!["\\])"(?!")|\\"{2})

I had to prevent also scaped quotes -\" and all other cases you mentioned.

Igor 'izut' Sutton
your code, your rules.