http://qs321.pair.com?node_id=870059


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)

Replies are listed 'Best First'.
Re^2: Skip 2 new lines
by Anonymous Monk on Nov 08, 2010 at 14:11 UTC
    Thank you to everyone - very helpful.