in reply to Re: /s and /m don't seem to be doing anything
in thread /s and /m don't seem to be doing anything

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

  • Comment on Re^2: /s and /m don't seem to be doing anything

Replies are listed 'Best First'.
Re^3: /s and /m don't seem to be doing anything
by Anonymous Monk on Dec 31, 2014 at 04:56 UTC