Skip to content

Instantly share code, notes, and snippets.

@omidp
Created February 15, 2021 08:46
Show Gist options
  • Save omidp/a43176a7dbab3503fbc360fb65fe0ccf to your computer and use it in GitHub Desktop.
Save omidp/a43176a7dbab3503fbc360fb65fe0ccf to your computer and use it in GitHub Desktop.
Notepad++ add to every line
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