Regex.quickMatch_13kaya
Test whether a string matches the pattern
Usage
Bool quickMatch( String patt, String str, [REFlags] fl=createArray(1) )
Arguments
patt A regular expression in String form
str The string to be matched
fl A list of Regex.REFlags (3kaya) options for the regular expression. This parameter is optional and defaults to the empty list.
Overview
Test whether str matches patt , returning true if it does and false otherwise.
-
if (!quickMatch(".@.*\.[a-z]+$",email,[IgnoreCase])) {
throw(NotAnEmailAddress);
}
Releases
4 releases since Debian 5.0 (Lenny); the text changed 3 times.