andgineer / TRegExpr

Regular expressions (regex), pascal.
https://regex.sorokin.engineer/en/latest/
MIT License
174 stars 63 forks source link

Substitute: Numbered group in template defaults to "$" #268

Closed white-gthb closed 2 years ago

white-gthb commented 2 years ago

Regression bug (it has worked in the past). If a numbered group in the template does not exist in the regular expression, it is replaced with "$". Example:

Search text:  abc
RegEx:        (b)
Template:     $1$2

Result:       ab$c
Expected:     abc
Alexey-T commented 2 years ago

I will see it soon.

Alexey-T commented 2 years ago

fixed in my fork! Pls test. Made a pull-req.

white-gthb commented 2 years ago

I don't have a developers environment set up. If you want me to test pls provide Windows binary, for example CudaText binary.

white-gthb commented 2 years ago

Author of Total Commander says: Fix seems to work. See: https://www.ghisler.ch/board/viewtopic.php?p=412927#p412927

Alexey-T commented 2 years ago

great!