• Login
Community
  • Login

Replace a CRLF with a space in Notpad++

Scheduled Pinned Locked Moved General Discussion
2 Posts 2 Posters 14.3k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J
    James Trowbridge
    last edited by Nov 2, 2021, 12:12 AM

    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:

    ExtendedCodesInNP.jpg

    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).

    1 Reply Last reply Reply Quote 0
    • T
      Terry R
      last edited by Nov 2, 2021, 12:16 AM

      @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

      1 Reply Last reply Reply Quote 2
      1 out of 2
      • First post
        1/2
        Last post
      The Community of users of the Notepad++ text editor.
      Powered by NodeBB | Contributors