Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^3: You won't believe what this regular expression does!

by LanX (Sage)
on Feb 25, 2021 at 15:15 UTC ( #11128786=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      DB<55> p "hello\nfoo" =~ s/o*(?:\n|\z)/O/gmr;
    hellOfOO
      DB<56>
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2022-12-05 22:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?