Match text to a regular expression pattern (case insensitive).
<fromRuleEltNumber,toRuleEltNumber>regexpi(patternStr);
fromRuleEltNumber - type: int
toRuleEltNumber - type: int
patternStr - type: string
Succeeds if the pattern matches, else fails.
A pattern consists of text and the special characters ? and *. ? matches any single character, and * matches any zero or more characters. (There is no way to currently escape ? and *). Matching is case insensitive.
# This will match words such as JUNK, junks, junky, JunkYard.
@PRE
<1,1> regexpi("junk*");
@POST
group(1,1,"_junkword");
@RULES
_xNIL <-
_xALPHA
@@