Skip to content

Instantly share code, notes, and snippets.

@wpsmith
Created July 23, 2013 23:39
Show Gist options
  • Save wpsmith/6067068 to your computer and use it in GitHub Desktop.
Save wpsmith/6067068 to your computer and use it in GitHub Desktop.
RegEx: Notepad++ Append & Prepend to each line
Press CTRL-H to bring up the Find/Replace Dialog. Choose the "Regular expressions" checkbox near the bottom of the dialog.
To add "test" to the beginning of each line, type "^" in the "Find what" field, and "test" in the "Replace with" field. Then hit "Replace All".
To add "test" to the end of each line, type "$" in the "Find what" field, and "test" in the "Replace with" field. Then hit "Replace All".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment