Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Replace a CRLF with a space in Notpad++

    General Discussion
    2
    2
    221
    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 Trowbridge
      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 R
        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
        Copyright © 2014 NodeBB Forums | Contributors