in reply to Re: remove single blank lines?
in thread remove single blank lines?

oops, forgot to login.

qq

Update: as ysth shows below, my code performs poorly. Why the forward and negative lookarounds aren't working as I expected them to defeats me right now. This regex works much better:

s/(^|[^\n])\n{2}([^\n]|$)/$1\n$2/g;