You might try stripping out all \r's before doing the regex and using \n as the only line ending, with your regex looking for just \n{2,}
In reply to Re: regex to replace linefeeds with <p> tags
by ysth
in thread regex to replace linefeeds with <p> tags
by jck
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |