How to insert the same text into empty lines in Notepad++

- Open the file in which you want to insert text into empty lines.
- Press Ctrl+H to open the Find and Replace dialog box.
- In the Find what field, enter the following regular expression:
^\s*$
Your text here
Example
Consider an example where we have a text file with several empty lines:
First line Third line Fourth line Sixth line
After following the above steps and replacing the empty lines with the text Filled, the file will look like this:
First line Filled Third line Fourth line Filled Sixth line
Using Notepad++, you can insert the same text into empty lines with regular expressions. This method is especially useful when working with large text files.