[Nopepad++] How to add text at end of each line

Append Text At End Of Each Line
Append Text At End Of Each Line

Text Editors such as Notepad++ can come very handy when you want to quickly edit or append text to a file using regular expressions (regEx). If you have a use case where you want to append/suffix some text at the end of each line of a file, here is how you can achieve it,

  1. Open your file in Notepad++, of make sure you are on the tab that has your content.
  2. Now Click "Ctrl + H" to open replace window.
  3. Now make sure you have selected Search Mode as "Regular Expression"
  4. In Find What: type $
  5. In Replace With: type your text you want to append.
  6. Now Click: Replace All
  7. That's about it! you should see the text appended at the end of each file of your file.

Recent Posts:

Code2care is an initiative to publish and share varied knowledge in programming and technical areas gathered during day-to-day learnings and development activities.

Students and Software Developers can leverage this portal to find solutions to their various queries without re-inventing the wheel by referring to our easy to understand posts. Technical posts might include Learnings, Video Tutorials, Code Snippets, How Tos, Blogs, Articles, etc.