I have just downloaded notepad++.
Was not sure on how to do but I made a simple text file to test on, opened it up, searched for the text I did not want. Chose "replace" but left the replace tab empty.
text went away.

I have just downloaded notepad++.
Was not sure on how to do but I made a simple text file to test on, opened it up, searched for the text I did not want. Chose "replace" but left the replace tab empty.
text went away.

I have just downloaded notepad++.
Was not sure on how to do but I made a simple text file to test on, opened it up, searched for the text I did not want. Chose "replace" but left the replace tab empty.
text went away.

Click to expand...

If you also want the newlines to be gone after replacing (as not to create empty lines), do the following in Notepad++ or your favorite editor with regex support:

Open the replace text window

In the section 'Search Mode' left below Select the option 'Extended'

In 'Find what' write your to remove text, but end it with '\r\n'

Code:

i.stack.imgur.com/r22P5.png

A '\r' is a control character for 'carriage return' and '\n' for 'line break', combining them for newline or so called 'CRLF'.

After done, i recommend to set 'Search Mode' back to 'Normal' to not confuse later if you need to replace a literal '\r\n'.

Have a nice day ^^.

Visit my script repo for scripts that might make your life easier or more fascinating.

Stop hovering to collapse...Click to collapse...Hover to expand...Click to expand...