Match text to a regular expression pattern.
<fromRuleEltNumber,toRuleEltNumber>regexp(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 sensitive.
# This will match words such as junk, junks, junky, junkyard.
@PRE
<1,1> regexp("junk*");
@POST
group(1,1,"_junkword");
@RULES
_xNIL <-
_xALPHA
@@