Loading

Thursday, August 13, 2009

Remove Blank Lines in a Document With Notepad++ With Extended Search Mode

Switch to Extended search mode in the Replace dialog.

Find what: \r\n\r\n

Replace with: (leave this blank)

Press Replace All. All the blank lines are gone.


* \r\n is a newline character (in Windows).

* \r\n\r\n finds two newline characters (what you get from pressing Enter twice).

2 comments:

  1. Excellent! Just used this...much appreciated.

    ReplyDelete