Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^3: newlines in regular expressions

by tachyon (Chancellor)
on Dec 07, 2004 at 12:09 UTC ( #412890=note: print w/ replies, xml ) Need Help??


in reply to Re^2: newlines in regular expressions
in thread newlines in regular expressions

perl -pi -e 's/^\s*\z//' file.txt deals with blank lines with other whitespace.


Comment on Re^3: newlines in regular expressions
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (15)
As of 2015-07-07 18:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (93 votes), past polls