Bug: 'replace next' fails, 'replace all' works

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, MudGuard

Post Reply
krowden
Posts: 1
Joined: Sat Oct 27, 2007 4:14 pm

Bug: 'replace next' fails, 'replace all' works

Post by krowden »

To reproduce:
1. create a .txt file of 5 lines with sample text
2. the objective is to append a string to the end of each line. I used the following string: ,"KIM"
3. Use F8 (Search | Replace)
4. Click Regular Expression
5. For 'Find what:' enter: $
6. For 'Replace with:' enter: ,"KIM"

...at this point
- the 'Find Next' button works
- the 'Replace' button DOES NOT WORK - but does advance through the file
- the 'Replace Next' button DOES NOT WORK - but does advance through the file
- the 'Replace All' button works

I searched the website and the forum - but found no place to report a suspected bug.
Thanks,
-Kim
ben_josephs
Posts: 2464
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

Agreed. This is a bug.

Work-around:
Find what: \n
Replace with: ,"KIM"\n

[X] Regular expression
Post Reply