Issue with Reg Ex

General questions about using TextPad

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

User avatar
Drxenos
Posts: 209
Joined: Mon Jul 07, 2003 8:38 pm

Re: Issue with Reg Ex

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

Re: Issue with Reg Ex

Post 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
User avatar
Drxenos
Posts: 209
Joined: Mon Jul 07, 2003 8:38 pm

Re: Issue with Reg Ex

Post 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.
User avatar
Drxenos
Posts: 209
Joined: Mon Jul 07, 2003 8:38 pm

Re: Issue with Reg Ex

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

Re: Issue with Reg Ex

Post 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.
User avatar
Drxenos
Posts: 209
Joined: Mon Jul 07, 2003 8:38 pm

Re: Issue with Reg Ex

Post by Drxenos »

Huzzah! Thank you so much for fixing this.

DrX
Post Reply