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

SQL php on different pages to Insert (mysqli) -

php - How can an email be returned from Stripe Checkout? -

sql - Partition elimination in Greenplum -