Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^3: regex for strings with escaped quotes

by haukex (Archbishop)
on Feb 12, 2019 at 15:19 UTC ( #1229803=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Regexp::Common qw/delimited/;
    q{ x "foo \"bar\"" y } =~ /$RE{delimited}{-delim=>'"'}{-keep}/;
    print $3, "\n";  # prints: foo \"bar\"
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2023-06-02 21:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you go to conferences?






    Results (2 votes). Check out past polls.

    Notices?