Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

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

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

Help for this page

Select Code to Download


  1. or download this
      DB<48> p "hello\nfoo" =~ s/o*$/O/gmr;
    hellOO
    ...
    hellO
    fO
      DB<50>
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (3)
As of 2022-05-21 00:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (76 votes). Check out past polls.

    Notices?