Community
    • Login

    Bug: Search/Replace All does not replace all

    Scheduled Pinned Locked Moved General Discussion
    4 Posts 4 Posters 1.0k 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.
    • Jay ImermanJ Offline
      Jay Imerman
      last edited by Jay Imerman

      For example, paste the following into Notepad++, then press Ctrl-H, search for double-quote “, and replace with backslash-double-quote \”, pick Replace All. Note that not all are replaced.

      Notepad++ x64 v7.8.4

      TEST EXAMPLE:

      {
      “elements”: [
      {
      “name”: {
      “locale”: {
      “country”: “US”,
      “language”: “en”
      },
      “value”: “Sacramento, California Area”
      },
      “country”: “urn:li:country:us”,
      “id”: 82,
      “$URN”: “urn:li:region:82”,
      “states”: [
      “urn:li:state:(urn:li:country:us,CA)”,
      “urn:li:state:(urn:li:country:us,NV)”
      ]
      },
      {
      “name”: {
      “locale”: {
      “country”: “US”,
      “language”: “en”
      },
      “value”: “San Francisco Bay Area”
      },
      “country”: “urn:li:country:us”,
      “id”: 84,
      “$URN”: “urn:li:region:84”,
      “states”: [
      “urn:li:state:(urn:li:country:us,CA)”
      ]
      },
      …
      ],
      “paging”: {
      “count”: 10,
      “start”: 0
      }
      }

      Alan KilbornA EkopalypseE 2 Replies Last reply Reply Quote 0
      • Alan KilbornA Offline
        Alan Kilborn @Jay Imerman
        last edited by

        @Jay-Imerman

        Works fine for me. Maybe more details about what you are doing (screenshot?) and what you are ending up with?

        1 Reply Last reply Reply Quote 1
        • EkopalypseE Offline
          Ekopalypse @Jay Imerman
          last edited by

          @Jay-Imerman said in Bug: Search/Replace All does not replace all:

          Note that not all are replaced.

          This makes me suspect that the replacements are all after the current
          caret position and you haven’t checked wrap around, is that right?

          1 Reply Last reply Reply Quote 2
          • guy038G Offline
            guy038
            last edited by guy038

            Hello, @jay-imerman and All,

            And, if you run this S/R, using the Regular expression search mode, you must adopt this syntax :

            SEARCH "

            REPLACE \\"

            because the Escape \ is a special regex character and needs to be escaped, itself, with an other \ symbol, to be taken as a literal !

            Best Regards,

            guy038

            1 Reply Last reply Reply Quote 1

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