Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Regex

by petral (Curate)
on Oct 29, 2002 at 15:06 UTC ( [id://208761]=note: print w/replies, xml ) Need Help??


in reply to Delete the first line of a file ?

Just for completeness, here's how one can do it with a regex:
perl -p0777we 's/ .+? ( ^ .* ^ ) .* /$1/xms'


  p

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2024-04-19 19:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found