The Computer Oracle

Replace \r\n with newline in Notepad++

Become or hire the top 3% of the developers on Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Realization

--

Chapters
00:00 Question
00:27 Accepted answer (Score 218)
00:45 Answer 2 (Score 14)
01:06 Answer 3 (Score 2)
01:48 Answer 4 (Score 1)
02:09 Thank you

--

Full question
https://superuser.com/questions/42670/re...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#notepad++ #textediting

#avk47



ACCEPTED ANSWER

Score 242


Press CTRL-h and the Replace dialog will open. Type \\r\\n in "Find what" and \r\n in "Replace with". Finally, select search mode Extended (\r, \n, \t, \x..., \0) and click "Replace All".




ANSWER 2

Score 17


In the find screen, on the replace tab choose extended search.
In the find text box put \\r\\n, and in the replace text box put \r\n.




ANSWER 3

Score 3


I tried the top voted answer, but I couldn't get it to work for my newer version of Notepad++. I had to reverse what they did. So:

Press CTRL-h and the Replace dialog will open. Type \r\n in "Find what" and \\r\\n in "Replace with". Then select search mode Extended (\r, \n, \t, \x..., \0) and click "Replace All".

Literally what Marcus did but reversed worked for me.




ANSWER 4

Score 1


Copy a newline and use the Search and Replace function to replace \r\n with the newline. The newline character will show up as an empty box.