@REGEX |
@REGEX[expression,string] : Returns 1 if the expression was found and 0 if it was not. The expression must be enclosed in double quotes if it contains any separator characters (space, comma, or tab). See Regular Expression Syntax for supported expressions.
Examples:
echo %@regex[\d,1234]
1
echo %@regex[\d,abcd]
0
echo %@regex[[b-chm-pP]at|ot,Pat]
1