Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Regex

by petral (Curate)
on Oct 29, 2002 at 15:06 UTC ( #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
Node Status?
node history
Node Type: note [id://208761]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (8)
As of 2020-05-30 11:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (171 votes). Check out past polls.

    Notices?