in reply to Re: Re: Regex Questionin thread Regex Question
s/([^\n])\n(?!\n)/$1/g; [download]
s/(?<!\n)\n([^\n])/$1/g; [download]
UPDATE chipmunk noticed a typo. I had not closed the second match. Oops.