Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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 drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2025-07-18 06:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.