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

Report issues, odd behaviors or submit a detailed bug report.
Post Reply
crtrubshaw
Posts: 367
Joined: 06 Jun 2012 11:08

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

Post 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.
crtrubshaw
Posts: 367
Joined: 06 Jun 2012 11:08

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

Post by crtrubshaw »

Bump...
User avatar
pjj
Posts: 2257
Joined: 13 Oct 2009 13:48
Location: Kraków, Poland

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

Post by pjj »

FWIW find & replace (also all) work for me; also Find next works as usual.
Alium tibi quaere fratrem; hic, quem tuum putas, meus est. Titus Flāvius Caesar Vespasiānus Augustus
crtrubshaw
Posts: 367
Joined: 06 Jun 2012 11:08

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

Post 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 200 times
Attachments
20250901-1917.png
20250901-1917.png (13.98 KiB) Viewed 3816 times
User avatar
pjj
Posts: 2257
Joined: 13 Oct 2009 13:48
Location: Kraków, Poland

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

Post by pjj »

I didn't understand you search for tokens ^ and $ as only search terms :oops: Yes, I can confirm that hangs RJ TE.
Alium tibi quaere fratrem; hic, quem tuum putas, meus est. Titus Flāvius Caesar Vespasiānus Augustus
User avatar
Rickard Johansson
Site Admin
Posts: 6835
Joined: 19 Jul 2006 14:29

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

Post 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...
User avatar
Rickard Johansson
Site Admin
Posts: 6835
Joined: 19 Jul 2006 14:29

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

Post by Rickard Johansson »

Fixed in next release (v16.45). Thanks!
crtrubshaw
Posts: 367
Joined: 06 Jun 2012 11:08

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

Post 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.
crtrubshaw
Posts: 367
Joined: 06 Jun 2012 11:08

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

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