Created
February 15, 2021 08:46
-
-
Save omidp/a43176a7dbab3503fbc360fb65fe0ccf to your computer and use it in GitHub Desktop.
Notepad++ add to every line
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://stackoverflow.com/questions/11003761/notepad-add-to-every-line | |
Follow these steps: | |
Press Ctrl+H to bring up the Find/Replace Dialog. | |
Choose the Regular expression option near the bottom of the dialog. | |
To add a word, such as test, at the beginning of each line: | |
Type ^ in the Find what textbox | |
Type test in the Replace with textbox | |
Place cursor in the first line of the file to ensure all lines are affected | |
Click Replace All button | |
To add a word, such as test, at the end of each line: | |
Type $ in the Find what textbox | |
Type test in the Replace with textbox | |
Place cursor in the first line of the file to ensure all lines are affected | |
Click Replace All button |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment