How to find double linebreaks in Notepad++

linebreaksnotepad

Take for example the following:

This text file has many


double linebreaks, What is the expression


too find  these?

Best Answer

If you use "regular expression" search mode:

(\r\n\s*$){2,}

Will find all instances of 2 or more blank lines, including ones that just have spaces on the line.

E.G. using a replace of \r\n

something



something else



another thing

Another








Another thing

Becomes

something

something else

another thing

Another

Another thing
Related Question