Community
    • Login

    Replace a CRLF with a space in Notpad++

    Scheduled Pinned Locked Moved General Discussion
    2 Posts 2 Posters 13.1k 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.
    • James TrowbridgeJ
      James Trowbridge
      last edited by

      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
      • Terry RT
        Terry R
        last edited by

        @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
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors