- May
- 13,117
- 180
The bevavior of @REGEX when groups are specified still does not match what the help says,
"Returns the number of matching groups in the string."
"Returns the number of matching groups in the string."
Code:
v:\> xsyntax.bat
Syntax: Perl
@regex[(a)|(b)|(c)|(d), dog] = 5
Syntax: Ruby
@regex[(a)|(b)|(c)|(d), dog] = 5
Syntax: GNU
@regex[(a)|(b)|(c)|(d), dog] = 5
Syntax: POSIX
@regex[(a)|(b)|(c)|(d), dog] = 5
Syntax: Java
@regex[(a)|(b)|(c)|(d), dog] = 5
Syntax: Grep
@regex[\(a\)\|\(b\)\|\(c\)\|\(d\), dog] = 5