How can I find/replace all CR/LF characters in Notepad++?
I am looking for something equivalent to the ^p special character in Microsoft Word.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
[\r\n]+should work tooUpdate March, 26th, 2012, release date of Notepad++ 6.0:
OMG, it actually does work now!!!
Original answer 2008 (Notepad++ 4.x) – 2009-2010-2011 (Notepad++ 5.x)
Actually, no, it does not seem to work with regexp…
But if you have Notepad++ 5.x, you can use the ‘extended‘ search mode and look for
\r\n. That does find all yourCRLF.(I realize this is the same answer as the others, but again, ‘extended mode’ is only available with Notepad++ 4.9, 5.x and more)
Since April 2009, you have a wiki article on the Notepad++ site on this topic:
"How To Replace Line Ends, thus changing the line layout".
Some relevant extracts include the following search processes:
The same wiki also mentions the Hex editor alternative: