Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Skip 2 new lines

by mjscott2702 (Pilgrim)
on Nov 08, 2010 at 08:43 UTC ( #870059=note: print w/ replies, xml ) Need Help??


in reply to Skip 2 new lines

If what you are trying to do is replace 2 consecutive whitespace characters apart from 2 consecutive newlines (not sure from that substitute command, especially with the double-quotes), you could try something like:

s/\s[\ \t\r\f]/ /g

i.e. any whitespace character (including newline) followed by any whitespace character (except newline)


Comment on Re: Skip 2 new lines
Download Code
Re^2: Skip 2 new lines
by Anonymous Monk on Nov 08, 2010 at 14:11 UTC
    Thank you to everyone - very helpful.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (9)
As of 2014-10-24 18:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (134 votes), past polls