Find and replace multiple blank lines

find and replacenotepad

How do I use the find and replace function in notepad to delete multiple blank lines in a text file?

Best Answer

Within notepad there is no way to use the Find and Replace and target blank lines. Consider Notepad++ and the regex search and replace.

You can use \r\n to find blank lines from text files made within Windows, \r for Mac and \n for Linux.

I believe a default install actually comes with TextFX to make your life even easier, it has an option to delete blank lines:

alt text

Related Question