Fixed TCMD 20 beta @REGEXSUB problem

Sep 24, 2013
27
0
#1
Tried out the 20 beta. I use @REGEXSUB heavily in my batch files and it is not functioning properly.

Simplified example:
echo %@REGEXSUB[1,"^TCC ([0-9]+)",TCC 2]
In 17.00.77 x64, this returns "2". In 20beta it returns an empty string.

I suppose this could have broken in 18 or 19, but given the change of regular expression library in 20 I think it's more likely that it's a regression in the beta.
 
Sep 24, 2013
27
0
#3
Interesting. Thanks for checking. Perhaps there's something odd about my environment, or it's a 64-bit specific issue.

Just tried again (I uninstalled 20 but kept the files zipped up in case I wanted to run another test).

[c:\tt]ver & echo %@REGEXSUB[1,"^TCC ([0-9]+)",TCC 2]

TCC 17.00.77 x64 Windows 7 [Version 6.1.7601]
2

[c:\tt]tcc
Your evaluation period expires in 30 days.
You can buy Take Command at https://jpsoft.com

2[c:\tt]ver & echo %@REGEXSUB[1,"^TCC ([0-9]+)",TCC 2]

TCC 20.00.8 x64 Windows 7 [Version 6.1.7601]
ECHO is OFF