Kaya 0.5.2 reference for Regex::quickMatch

List of functions and data types in Regex

Bool quickMatch(String patt, String str, [REFlags] fl=createArray(1))

Arguments

Usage

Test whether str matches patt, returning true if it does and false otherwise.

if (!quickMatch(".@.*\.[a-z]+$",email,[IgnoreCase])) {
    throw(NotAnEmailAddress);
}

str may be a Tainted string

Related

kaya@kayalang.org | Last modified 29 November 2011 | Supported by Durham CompSoc | Powered by Kaya