It might be related to the issue #273 , but since I'm not sure, I'll post it separately.
Example:
Original string: abc_def
Search expression: ^([a-z]+)_(?1)
Replace expression: $1
This expression unfolds into ^([a-z]+)_([a-z]+) ; no matter how you treat the context (whether it's global, or local), the first sub-expression matches abc. Therefore, the $1 replace expression should produce abc. But instead, it returns def.
I have checked it in Perl, and there it returns abc there.
The test TRegExpr application is: Total Commander 10.00 and 10.50 beta 5; it uses TRegExpr version: REVersionMajor = 1, REVersionMinor = 155.
It might be related to the issue #273 , but since I'm not sure, I'll post it separately.
Example: Original string:
abc_def
Search expression:^([a-z]+)_(?1)
Replace expression:$1
This expression unfolds into
^([a-z]+)_([a-z]+)
; no matter how you treat the context (whether it's global, or local), the first sub-expression matchesabc
. Therefore, the$1
replace expression should produceabc
. But instead, it returnsdef
.I have checked it in Perl, and there it returns
abc
there.The test TRegExpr application is: Total Commander 10.00 and 10.50 beta 5; it uses TRegExpr version: REVersionMajor = 1, REVersionMinor = 155.