Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

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

by Anonymous Monk
on Dec 31, 2014 at 04:24 UTC ( [id://1111804]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-04-20 02:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found