1

I want to add text at the bottom of every opened file (as a extra line) in notepad++. I know how to add at beginning of the file.

Find what:- (?s).* Replace with:- YOUR TEXT\r\n$0

which helps me more. but don't know how to add (new line with text) at the bottom.

"text hello friend"
"text hello friend"

should be changed with new line added at the bottom. like

"text hello friend"
"text hello friend"
**"text do not sin friend"**

Note "text do not sin friend" need to be added as new line in multiple files.

How can I do this?

0

I want to add text at the bottom of every opened file (as a extra line) in notepad++

  • Menu "Search" > "Replace" (or Ctrl + H)

  • Set "Find what" to (.*+) - This regular expression selects the whole file, when "matches newline" is enabled.

  • Set "Replace with" to \1\r\n**"text do not sin friend"**

  • Enable "Regular expression" and "matches newline"

  • Click "Replace All"

Notes:

  • The above assumes a file with Windows EOLs \r\n

  • Use \n instead of \r\n for Unix/OS X EOLs

  • Use \r instead of \r\n for Mac OS (up to version 9) EOLs

    Image

Before:

"text hello friend"
"text hello friend"

After:

"text hello friend"
"text hello friend"
**"text do not sin friend"**

Further reading

  • it works. you are great. !!!!!!!!!---- thank you so much---!!!!!!!!!. – Abd Jan 7 '17 at 16:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.