Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Help with Double Double Quotes regular expression

by izut (Chaplain)
on Apr 02, 2007 at 14:58 UTC ( #607841=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://607841]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2021-02-26 12:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?