We don't bite newbies here... much | |
PerlMonks |
Re^2: /s and /m don't seem to be doing anythingby Anonymous Monk |
on Dec 31, 2014 at 04:24 UTC ( [id://1111804]=note: print w/replies, xml ) | Need Help?? |
Its a common pitfall /(?^:foo$)/m is the same as /(?-xism:foo$)/m the (?-xism:foo$) means NOT-m, means match end of STRING not end of LINE http://perldoc.perl.org/perlre.html#%28?^alupimsx%29, http://perldoc.perl.org/perlunicode.html#The-%22Unicode-Bug%22 I could have sworn wxPPIxregexplain.pl/ ppixregexplain.pl handled ?^ correctly, but I guess it doesn't, dang
In Section
Seekers of Perl Wisdom
|
|