Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Help with Double Double Quotes regular expression

by izut (Chaplain)
on Apr 02, 2007 at 14:58 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://607841]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (1)
As of 2024-04-25 07:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found