Add anything to the start or end of text lines with Notepad Plus Plus


If you try to find in Notepad Plus Plus a command like that available in NoteTab, to add something to the start or the end of the lines of your text, you search in vain. Perhaps some plugin is dedicated to such jobs, but you don’t have to use one even if it exists.

You can do your job easily using the following extremely simple Search & Replace operation:

Put the cursor to the first line you need to change. Then open the Replace dialogue (Ctrl+h), check the “Regular Expression” option at the bottom, and in the “Find what” text box write: ^

Then in the “Replace with” text box write or paste whatever you want to place in the start of your lines.

To do the same for the END of your lines, just write $ instead of ^ in the “Find what’ text box.

Enjoy!