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.
Comments
Post a Comment