Syntax
int match( string regularexpr, string str )
Description
match compares a string to a regular expression.
Returns true if a match is found; otherwise, false.
Example
# check if user begins with j and ends with t… if (match("^j.*t$", user) ) { … }