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

Re: Removing blank/empty lines

by Anonymous Monk
on Dec 11, 2012 at 14:28 UTC ( #1008310=note: print w/replies, xml ) Need Help??


in reply to Removing blank/empty lines

Use a regex like /$\s*^/ to anchor the pattern at both ends and search for zero-or-more occurrences of a space character between.

Replies are listed 'Best First'.
Re^2: Removing blank/empty lines
by Athanasius (Chancellor) on Dec 12, 2012 at 06:08 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1008310]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2017-02-22 23:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (338 votes). Check out past polls.