How to add a word at the beginning of each line in Notepad++

- Open the file in Notepad++.
- Press Ctrl + H to open the Find and Replace window.
- In the Find field, enter:
^
This symbol means the beginning of a line. - In the Replace with field, enter the word or phrase you want to add at the beginning of each line.
- Make sure the Regular expression mode is selected.
- Click Replace All.
Let's look at an example. Suppose you have the following text:
line1 line2 line3
You want to add the word Start at the beginning of each line. After performing the above steps, your text will look like this:
Start line1 Start line2 Start line3
Using Notepad++ to add a word at the beginning of each line can significantly simplify your work with large text files.