Page 1 of 1

FIXED? Regex search (begin/end line tokens) (v16.44)

Posted: 11 Aug 2025 16:37
by crtrubshaw
The begin line (^) and end line ($) tokens are not working properly in regex find/replace. If I search from beginning of the document for ^ it goes to the start of the first line (correct) but I cannot do Find Next, also, Replace does nothing.

Same thing happens with $, cursor goes to the end of the first line, but I can't Find Next or Replace.

Replace All causes the application to hang.

Thanks.

P.S. Issue is present in v16.44 as well.

Re: Regex search (begin/end line tokens) (v16.44)

Posted: 01 Sep 2025 10:50
by crtrubshaw
Bump...

Re: Regex search (begin/end line tokens) (v16.44)

Posted: 01 Sep 2025 11:07
by pjj
FWIW find & replace (also all) work for me; also Find next works as usual.

Re: Regex search (begin/end line tokens) (v16.44)

Posted: 01 Sep 2025 19:05
by crtrubshaw
I'm definitely having issues, I've made a video... also got an error trying to close the app.
20250901-1901.zip
(973.07 KiB) Downloaded 1796 times

Re: Regex search (begin/end line tokens) (v16.44)

Posted: 01 Sep 2025 20:29
by pjj
I didn't understand you search for tokens ^ and $ as only search terms :oops: Yes, I can confirm that hangs RJ TE.

Re: Regex search (begin/end line tokens) (v16.44)

Posted: 14 Sep 2025 14:41
by Rickard Johansson
I think all issues with find and replace are fixed. But the replace all issue is harder to pin down... I'm working on it...

Re: Regex search (begin/end line tokens) (v16.44)

Posted: 15 Sep 2025 13:57
by Rickard Johansson
Fixed in next release (v16.45). Thanks!

Re: Regex search (begin/end line tokens) (v16.45)

Posted: 19 Sep 2025 09:52
by crtrubshaw
Hi Rickard, I've done a few tests and noticed a couple of issues...

1. If I search for begin line token (^), from beginning of the document, the cursor goes to the start of line 2, not line 1 as it should.
2. If I search for the end line token ($) and do a replace all, the replacement is inserted twice with a line break in between each insertion.

Re: Regex search (begin/end line tokens) (v16.44)

Posted: 23 Sep 2025 10:06
by crtrubshaw
Found another small issue...

If I search a full line (.+), the first find matches on line 1 character 2 (should be character 1).

Re: FIXED: Regex search (begin/end line tokens) (v16.44)

Posted: 09 Oct 2025 11:54
by crtrubshaw
Bump...

Re: FIXED: Regex search (begin/end line tokens) (v16.44)

Posted: 20 Oct 2025 16:38
by Rickard Johansson
Should work in next release (v16.50). Thanks!