empty capture expression
Brought to you by:
fagiano
Hello!
After downloading t-rex1.3 release i've discovered a bug: empty capture expression.
Using test.c i've tested some (pattern, test string) pairs.
Here it is:
For the pattern "abc([0-9]{2})(a)(b)" and the string to be tested "abc12ab".
The captures were:
[0]abc12ab
[1]12
[2]
[3]b
match! 4 sub matches.
For the pattern "abc([0-9]{1})(a)(b)" and test string "abc1ab" the captures were ok.
It surprised me to see that release 1.0 was displaying the correct output:
[0]abc12ab
[1]12
[2]a
[3]b
match! 4 sub matches
Logged In: YES
user_id=808278
Originator: NO
The tests I did show that the bug has been introduced in version 1.2 (version 1.1 doesn't have it).