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

NAME

6       Regex::match - Attempt to match a regular expression.
7

SYNOPSIS

9       Match match( Regex x, String str )
10

ARGUMENTS

12       x A compiled regular expression
13
14       str The String to match
15

DESCRIPTION

17       Attempt to match a compiled regular expression to a string, returning a
18       Regex.Match (3kaya) object.
19
20
21    r = compile("s$");
22    s1 = "sausages";
23    m1 = match(r,s1); // matches(["s"],"sausage","")
24    s2 = "a sausage";
25    m2 = match(r,s2); // noMatch
26
27       str may be a Tainted string, and the strings in the Match  object  will
28       not be tainted.
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.compile (3kaya)
42       Regex.quickMatch (3kaya)
43       Regex.quickMatch_1 (3kaya)
44       Builtins.Tainted (3kaya)
45
46
47
48Kaya                             December 2010              Regex.match(3kaya)
Impressum