"Replace All" is not working
-
Hi,
I realized replace is not working. Only replaces once for repeated errors.
Thnx
-
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.
-
Version is 6.8.6
Just try random test with same word. Like:
word
word
word
wordThen; 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
-
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.
-
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”?
-
I solved the problem. Direction should be “Down” :)
-
Uncheck “In selection” worked for me