1Regex.quickMatch(3kaya)      Kaya module reference     Regex.quickMatch(3kaya)
2
3
4

NAME

6       Regex::quickMatch - Test whether a string matches the pattern
7

SYNOPSIS

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

ARGUMENTS

12       patt A regular expression in String form
13
14       str The string to be matched
15
16       fl  A list of Regex.REFlags (3kaya) options for the regular expression.
17       This parameter is optional and defaults to the empty list.
18

DESCRIPTION

20       Test whether str matches patt , returning true if  it  does  and  false
21       otherwise.
22
23
24    if (!quickMatch(".@.*\.[a-z]+$",email,[IgnoreCase])) {
25        throw(NotAnEmailAddress);
26    }
27
28       str may be a Tainted string
29

AUTHORS

31       Kaya   standard  library  by  Edwin  Brady,  Chris  Morris  and  others
32       (kaya@kayalang.org). For further information see http://kayalang.org/
33

LICENSE

35       The Kaya standard library is free software;  you  can  redistribute  it
36       and/or  modify  it  under  the  terms  of the GNU Lesser General Public
37       License (version 2.1 or any later version) as  published  by  the  Free
38       Software Foundation.
39
41       Regex.match (3kaya)
42       Regex.quickMatch (3kaya)
43       Builtins.Tainted (3kaya)
44
45
46
47Kaya                             December 2010         Regex.quickMatch(3kaya)
Impressum