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

Re^3: negative lookbehind and VERY strange capture

by AnomalousMonk (Archbishop)
on Sep 18, 2016 at 18:31 UTC ( [id://1172071]=note: print w/replies, xml ) Need Help??


in reply to Re^2: negative lookbehind and VERY strange capture
in thread negative lookbehind and VERY strange capture

FWIW, please note that  /^"((?:[^"\\]|\\["\\])+)"$/ does not match the empty string:

c:\@Work\Perl\monks>perl -wMstrict -le "my $emptystring = '\"\"'; print '+ match' if $emptystring =~ /^\"((?:[^^\"\\]|\\[\"\\])+)\"$/; print '* match' if $emptystring =~ /^\"((?:[^^\"\\]|\\[\"\\])*)\"$/; " * match
(Please forgive all the extra backslashes and ignore the extra  ^ in [^^\"\\]. These are Windoze command line artifacts.)


Give a man a fish:  <%-{-{-{-<

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2024-04-24 17:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found