regex - Notepad++: Reducing multiple line breaks to single -


my text document has multiple line breaks @ random places. want use notepad++ reduce multiple line breaks single line break. how can accomplish that?

i on lines of using \n in extended find/replace mode can't quite it.

you can use regular expression s&r:

(?:\r\n){2,} 

or

\r{2,} 

in find what field and

\r\n 

in replace with field. may adjust replacement pattern per needs.

enter image description here


Comments

Popular posts from this blog

c++ - No viable overloaded operator for references a map -

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -