REPLACE ALL: only ONE instance of the text is replaced

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
gcotterl
Posts: 248
Joined: Wed Mar 10, 2004 8:43 pm
Location: Riverside California USA

REPLACE ALL: only ONE instance of the text is replaced

Post 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?
Last edited by AmigoJack on Mon Oct 14, 2024 1:50 pm, edited 1 time in total.
Reason: more verbose subject
User avatar
bbadmin
Site Admin
Posts: 882
Joined: Mon Feb 17, 2003 8:54 pm
Contact:

Re: REPLACE ALL

Post by bbadmin »

Make sure that the scope isn't set to selected text on the Replace dialog box.
gcotterl
Posts: 248
Joined: Wed Mar 10, 2004 8:43 pm
Location: Riverside California USA

Re: REPLACE ALL

Post by gcotterl »

Scope is set to Active Document (not Selected Text)
User avatar
bbadmin
Site Admin
Posts: 882
Joined: Mon Feb 17, 2003 8:54 pm
Contact:

Re: REPLACE ALL

Post 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.
gcotterl
Posts: 248
Joined: Wed Mar 10, 2004 8:43 pm
Location: Riverside California USA

Re: REPLACE ALL: only ONE instance of the text is replaced

Post by gcotterl »

The search and replace strings info is at the top of the attached sample text document.
Attachments
movie quotes.txt
(7.2 KiB) Downloaded 132 times
User avatar
AmigoJack
Posts: 536
Joined: Sun Oct 30, 2016 4:28 pm
Location: グリーン ヒル ゾーン
Contact:

Re: REPLACE ALL: only ONE instance of the text is replaced

Post 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 "?
gcotterl
Posts: 248
Joined: Wed Mar 10, 2004 8:43 pm
Location: Riverside California USA

Re: REPLACE ALL: only ONE instance of the text is replaced

Post 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?
User avatar
bbadmin
Site Admin
Posts: 882
Joined: Mon Feb 17, 2003 8:54 pm
Contact:

Re: REPLACE ALL: only ONE instance of the text is replaced

Post by bbadmin »

If you had recorded that replace command as a macro, make sure that the macro's default scope is set to "Document".
gcotterl
Posts: 248
Joined: Wed Mar 10, 2004 8:43 pm
Location: Riverside California USA

Re: REPLACE ALL: only ONE instance of the text is replaced

Post by gcotterl »

I'm not an a macro-bian (for TextPad or Excel)
User avatar
AmigoJack
Posts: 536
Joined: Sun Oct 30, 2016 4:28 pm
Location: グリーン ヒル ゾーン
Contact:

Re: REPLACE ALL: only ONE instance of the text is replaced

Post 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.
Post Reply