To replace characters by carriage returns \r.
More specifically, I want to globally replace \r\n\r\n\r\n by \r\n\r\n
 This also allows replacement by
This also allows replacement by \n, but not by\r (being filled in literally).

\\r)Any ideas?
It is unclear what exactly you are trying to do. But if you are just trying to reduce 3 consecutive linebreaks to 2 try:
Find:  (\r?\n\r?\n)\r?\n
Replace: $1
works for me.  There is no literal \r inserted - perhaps because the replacement is with a capture group.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With