Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: using sed buffers

by Anonymous Monk
on May 03, 2012 at 05:12 UTC ( [id://968632]=note: print w/replies, xml ) Need Help??


in reply to using sed buffers

s2p helps you migrate from sed to perl

$ s2p "s!.*pts/\([0-9][0-9]*\).*!\1!" produces

... BOS:; # s!.*pts/\([0-9][0-9]*\).*!\1! { $s = s !.*pts/(\d\d*).*!${1}!s; $CondReg ||= $s; }

 ${1} is $1 is \1
 \(\) is ()
[0-9] is \d
* is *
. is .

Replies are listed 'Best First'.
Re^2: using sed buffers
by floobit (Initiate) on May 03, 2012 at 12:58 UTC
    Brilliant. Thanks, all.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (5)
As of 2024-04-23 07:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found