Page 1 of 1
REPLACE ALL: only ONE instance of the text is replaced
Posted: Mon Oct 14, 2024 8:39 am
by gcotterl
On the REPLACE screen:
the "FIND WHAT" box contains the text I want replaced.
the "REPLACE WITH" box contains the replacement text.
When I then click "REPLACE ALL", only ONE instance of the text is replaced.
To replace ALL instances, I have to click "SELECT ALL" (on the "Edit" menu) BEFORE I click "REPLACE ALL"
Why doesn't "REPLACE ALL", replace ALL instances?
Re: REPLACE ALL
Posted: Mon Oct 14, 2024 10:19 am
by bbadmin
Make sure that the scope isn't set to selected text on the Replace dialog box.
Re: REPLACE ALL
Posted: Mon Oct 14, 2024 11:02 am
by gcotterl
Scope is set to Active Document (not Selected Text)
Re: REPLACE ALL
Posted: Mon Oct 14, 2024 11:37 am
by bbadmin
In that case, please provide details of what your search and replace strings are, and a sample of the text containing more than one instance of the search string.
Re: REPLACE ALL: only ONE instance of the text is replaced
Posted: Mon Oct 14, 2024 2:03 pm
by gcotterl
The search and replace strings info is at the top of the attached sample text document.
Re: REPLACE ALL: only ONE instance of the text is replaced
Posted: Mon Oct 14, 2024 2:43 pm
by AmigoJack
Cannot reproduce with TextPad 8.4.0 and all variations of "Match whole words", "Match case" and "Regular expression". Do note that line 3 has a trailing space after "the" - so do you actually want to search for "the" or really for "the "?
Re: REPLACE ALL: only ONE instance of the text is replaced
Posted: Mon Oct 14, 2024 3:08 pm
by gcotterl
I'm using TextPad version 9.5.2 (64-bit)
Using the search and replace strings and other parameters at the top of my text file, I can NOT reproduce my problem either.
I will continue using REPLACE ALLto see if my problem recurs.
I will let you know, either way.
BTW: I always thought TEXTPAD was located in Australia, not in the UK. Is one of the other problem-solvers in Ozland?
Re: REPLACE ALL: only ONE instance of the text is replaced
Posted: Mon Oct 14, 2024 3:45 pm
by bbadmin
If you had recorded that replace command as a macro, make sure that the macro's default scope is set to "Document".
Re: REPLACE ALL: only ONE instance of the text is replaced
Posted: Mon Oct 14, 2024 4:00 pm
by gcotterl
I'm not an a macro-bian (for TextPad or Excel)
Re: REPLACE ALL: only ONE instance of the text is replaced
Posted: Mon Oct 14, 2024 8:17 pm
by AmigoJack
gcotterl wrote: Mon Oct 14, 2024 3:08 pmI always thought TEXTPAD was located in Australia, not in the UK.
Both address and telephone predial in the
contact information have always been british. I'm european.