Page 2 of 2
Re: Issue with Reg Ex
Posted: Mon May 22, 2023 1:17 pm
by Drxenos
bbadmin wrote: Mon May 22, 2023 1:14 pm
Try saving as UTF-8.
I did, and also UTF-16. It didn't help.
Thanks.
Re: Issue with Reg Ex
Posted: Mon May 22, 2023 5:07 pm
by bbadmin
As I can't reproduce this problem, there must be something unusual about your setup. Please will you email a copy of this file to the same address as before:
%APPDATA%\Helios\TextPad\9\ConfigState.xml
Re: Issue with Reg Ex
Posted: Mon May 22, 2023 5:18 pm
by Drxenos
Thanks. I send the file you requested.
I get this same behavior on more than one machine.
As I test, I tried an older version of TextPad (8.8.1). This does not exhibit the behavior.
Thanks for the support. I'd be happy to run any tests you'd like me to.
Re: Issue with Reg Ex
Posted: Mon May 22, 2023 7:16 pm
by Drxenos
I've been playing around with this and I've noticed a couple of things:
1. It only fails where there is more than one match per line (which seems why it doesn't fail with "Match case" checked).
2. I can make it fail if the file contains nothing more than "HANDBRAKE copy"
Re: Issue with Reg Ex
Posted: Tue May 23, 2023 12:37 pm
by bbadmin
Thanks for helping to track this bug down. It occurs under the following circumstances:
- If there's more than 1 match in a line
- and the replacement text is longer than the original and includes references to the matched characters
- and memory for the line is reallocated.
It will be fixed in the next release.
Re: Issue with Reg Ex
Posted: Tue May 23, 2023 12:59 pm
by Drxenos
Huzzah! Thank you so much for fixing this.
DrX