Community
    • Login

    "Replace All" is not working

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    7 Posts 3 Posters 13.1k Views 1 Watching
    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.
    • Ufuk EskiciU Offline
      Ufuk Eskici
      last edited by

      Hi,

      I realized replace is not working. Only replaces once for repeated errors.

      Thnx

      1 Reply Last reply Reply Quote 0
      • glennfromiowaG Offline
        glennfromiowa
        last edited by

        Hmm, I’m not sure how we can help with this level of detail. Can you provide the text in the Find what: box and the Replace with: box, the other settings in the Replace dialog, and perhaps some sample text where only one instance is replaced when you click Replace All? If it’s a reproducible error, the version of Notepad++ would be helpful also.

        1 Reply Last reply Reply Quote 0
        • Ufuk EskiciU Offline
          Ufuk Eskici
          last edited by

          Version is 6.8.6

          Just try random test with same word. Like:

          word
          word
          word
          word

          Then; CTRL+F --> “Replace all” with any random text. You’ll see only first line is changing. Before it was working well. I don’t know which version it was working. But I used this many times before.

          Thnx

          1 Reply Last reply Reply Quote 0
          • glennfromiowaG Offline
            glennfromiowa
            last edited by

            So I installed Version 6.8.6, just in case, and did some testing. I copied and pasted your four words into a blank document, opened the Replace dialog with Ctrl-H, and put these values in the dialog box:

            Find what: word
            Replace with: notaword
            Wrap around: Checked
            Search Mode: Normal
            

            No other checkboxes were checked. When I clicked Replace All, it replaced all 4 occurrences.

            So I tried to think of scenarios where it might not work. The first one I thought of was where the first word was selected, and the In Selection checkbox was checked. That succeeded in reproducing your results, replacing only the first word.

            The only other scenario I could think of would be related to case. I changed the first word to Word, with the initial letter capitalized, then used these values:

            Find what: Word
            Replace with: notaword
            Match case: Checked
            Wrap around: Checked
            Search Mode: Normal
            

            All other checkboxes were unchecked. When I clicked Replace All, it again reproducing your results, replacing only the first word.

            Other than that, I’m not quite sure what’s going on. I’m not sure if you’ve had this version installed for some time, or if you just started using it, but perhaps you could try installing the latest version, 7.3.2.

            1 Reply Last reply Reply Quote 1
            • Ufuk EskiciU Offline
              Ufuk Eskici
              last edited by

              If I check “match case” it is working well, replacing all at once. Before it wasn’t like this.

              Why do I have to check “match case”?

              1 Reply Last reply Reply Quote 0
              • Ufuk EskiciU Offline
                Ufuk Eskici
                last edited by

                I solved the problem. Direction should be “Down” :)

                1 Reply Last reply Reply Quote 0
                • VikktourV Offline
                  Vikktour
                  last edited by

                  Uncheck “In selection” worked for me

                  1 Reply Last reply Reply Quote 0

                  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