Add text after every line, multiple entries

86,147

Solution 1

You can do so by hitting Cntrl+F and then checking regular expression box.And put what you want to replace with what thing. You can put regular expression to find as

    \r 

and replace it with

        "YOUR TEXT"\r

enter image description here

Solution 2

Get a good text editor like Notepad++, then use the Find/Replace box. Select Regular Expression radio button in the Search Mode section. Search for $ (which is the end of line token), and replace with whatever text you'd like.

Solution 3

  1. place ur mouse at the start of the first line in ur list.
  2. Press Alt + "C"
  3. A window gets opened. Enter the text that u want to add under "Text to Insert" and press OK.
  4. Apply the same procedure for adding text at the end of all the lines.

Solution 4

Replace \r by ""\r, using extended search mode (you may use \n instead of \r if your file is in UNIX mode).

To add it on a new line after every line, you can replace \r\n by \r\n""\r\n (or once again \n by \n""\n depending on your line ending).

Solution 5

If you aren't particular about notepad++ as text editor, try using Atom. It has an option of multi cursor, through which you can add text to multiple lines effortlessly.

Share:
86,147
Criel
Author by

Criel

Updated on July 31, 2022

Comments

  • Criel
    Criel almost 2 years

    I'm just looking for a way to quicken the process of adding info after every line in a notepad application.

    I've got a notepad file that has many entries, around 1000+ and am looking to find a way to add ,"" after every line however I can't simply search and replace since every line is different than the other. Is there another way to simply add three characters after every line reqgardless of what they are?

  • Dave T.
    Dave T. over 11 years
    Using \r isn't sufficient to cover all the newline characters. See this msdn article for more info.
  • Kellen Stuart
    Kellen Stuart over 8 years
    This should be the answer. The /r thing did not work even slightly for me