zeroTutorials

Java, Server, Database Tutorials

Have a Question?

If you have any question you can ask below or enter what you are looking for!

Notepad++ : Adding a word at the beginning or at the end of each line

In order to add a word at the beginning or at the end od each line, we must :

  • Open “Find/Replace” Dialog via “Menu/Search/Replaceā€¦” or Ctrl+H shortcut.
  • Check “Regular expression” option in “search mode”.

1. Adding a word at the begining of each line :

To add a word, such as “BEGIN”, at the beginning of each line :

  • Type ^ in the “Find what” textbox
  • Type BEGIN in the Replace with textbox
  • Click “Replace All” button

2. Adding a word at the end of each line :

To add a word, such as “END”, at the end of each line:

  • Type $ in the Find what textbox
  • Type END in the Replace with textbox
  • Click Replace All button
Tags: