The "big hammer" approach says replace all of those characters with a newline.
s/^\s*$/\n/mg;
I'm a fan of the big hammer approach, but as you'd expect subtlety isn't exactly my strong point.
In reply to Re: regex doubt on excluding
by jellisii2
in thread regex doubt on excluding
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |