Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

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.

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

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2015-11-27 17:09 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (731 votes), past polls