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.
In reply to Re: Help with Double Double Quotes regular expression
by izut
in thread Help with Double Double Quotes regular expression
by mattford63
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |