
You first need to tell notepad++ to move the cursor to the first line, first position.

Step One common mistake notepad++ beginners make is that they forget that notepad++ basically behaves like a sophisticated typewriter. Wait! It says 0 occurrences, what am I doing wrong?Ĥ. Step When you hit Replace All, it should replace all empty lines in your document At the bottom check the option Regular Expression and enter \n\r into the search field. Step Now hit CTRL + F and go to the tab Replace. Step Open notepad++ – you should have something like this with empty lines:Ģ. Example:Ī useful cheat sheet can be found here Replacing Empty Lines In Notepad++ġ. and + your last operator will tell the preceding operator how to match a string.

Some of the operators date back to old typewriters, but all in all it’s not so difficult to understand:

Regex (regular expressions) are extremely powerful when it comes to string modification. Notepad++ is a nifty tool that includes a regex search-and-replace feature.
