oops, forgot to login.
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;
In reply to Re: Re: remove single blank lines?
by qq
in thread remove single blank lines?
by aloomens
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |