[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.

Try Out Code2care Dev Tools:


Android Java Linux Microsoft Google Python macOS Notepad++ Microsoft Teams CSS PHP SharePoint Html Linux C Programs Bootstrap jQuery Sublime Android Studio Facebook Eclipse WhatsApp News MySQL Json HowTos JavaScript FTP S3


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, Tutorials, Trouble-Shooting steps, Video Tutorials, Code Snippets, How Tos, Blogs, Articles, etc.
🎉 We are celebrating the 10th years of Code2care! Thank you for all your support! We hope we made a difference.
We strong support Gender Equality & Diversity.

We stand in solidarity with Ukraine - Make a donation to UNHCR - https://donate.unhcr.org/in/en-in/ukraine-emergency