Community
    • Login

    "Replace All" is not working

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

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

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

                  Uncheck “In selection” worked for me

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