Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: Regex capturing

by linuxer (Curate)
on Apr 06, 2009 at 12:13 UTC ( [id://755701]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    echo "Hello Dolly" | perl -wlpe "s/l(lo)/\1/g"
    \1 better written as $1 at -e line 1.
    
  2. or download this
    echo "Hello Dolly" | perl -wlpe "s/l(lo)/\$1/g"
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-03-29 09:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found