My text document has multiple line breaks at random places. Want to use Notepad++ to reduce any multiple line breaks to a single line break. How can I accomplish that?
I am on the lines of using \n in extended Find/replace mode but can't quite get it.
You can use a regular expression S&R:
(?:\r\n){2,}
or
\R{2,}
in the Find what field and
\r\n
in the Replace with field. You may adjust the replacement pattern as per your needs.

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