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