Add text after every line, multiple entries
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
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
- place ur mouse at the start of the first line in ur list.
- Press Alt + "C"
- A window gets opened. Enter the text that u want to add under "Text to Insert" and press OK.
- 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.
Criel
Updated on July 31, 2022Comments
-
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. over 11 yearsUsing \r isn't sufficient to cover all the newline characters. See this msdn article for more info.
-
Kellen Stuart over 8 yearsThis should be the answer. The /r thing did not work even slightly for me