Good point! However, \n\s*\n would replace \n\x20\n --a space surrounded by two newlines--which is not two consecutive newlines, thus the prior \n{2,} suggestion.
Edit: My apologies. Didn't notice the the OP's mentioning the possibility of other whitespace between the newlines.
In reply to Re^2: regular expression: match multiple newlines
by Kenosis
in thread regular expression: match multiple newlines
by wegelin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |