I just tried jellisii2's solution, s/^\s*$/\n/mg, and it worked without the non-greedy modifier. Each matching line was replaced by a single newline.
In reply to Re^5: regex doubt on excluding
by Lotus1
in thread regex doubt on excluding
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |