Replace a CRLF with a space in Notpad++
-
In Notpad++ using the Extended search mode, I want to replace a CR (\r) and LF (\n) with a space (in other words NOTHING).
Using the Extended search mode pictured below:

I have been able to use the Extended search mode to locate CRLF characters by using \r\n in the “Find what:” field, but I cannot figure out what to put in the “Replace with:” field to replace the CRLF with a space (in other words NOTHING).
-
@James-Trowbridge said in Replace a CRLF with a space in Notpad++:
but I cannot figure out what to put in the “Replace with:” field to replace the CRLF with a space (in other words NOTHING).
Your first mistake is to call a space NOTHING. It is a character just like ALL other characters. To be returned it must be in the “Replace With” field. Just hit the “space bar” once and you get the space character, try that.
Terry
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login