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

NAME

6       Regex::compile - Compile a regular expression
7

SYNOPSIS

9       Regex compile( String pattern, [REFlags] fl=createArray(1) )
10

ARGUMENTS

12       pattern The regular expression pattern to compile
13
14       fl  A list of Regex.REFlags (3kaya) options for the regular expression.
15       This parameter is optional and defaults to the empty list.
16

DESCRIPTION

18       Compile a  regular  expression  and  return  the  compiled  Regex.Regex
19       (3kaya)
20        This  can  then be re-used in several function calls for greater effi‐
21       ciency.
22
23       Note that if a literal backslash needs to be matched, it must be  writ‐
24       ten  as  "\\"  as  both Kaya and PCRE will interpret one layer of back‐
25       slashes. You can avoid this from Kaya 0.2.6  onwards  by  using  a  raw
26       string instead.
27
28
29    // these two are equivalent
30    test1 = quickMatch("\\",string);
31    test2 = quickMatch(R"\",string);
32

AUTHORS

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

LICENSE

38       The Kaya standard library is free software;  you  can  redistribute  it
39       and/or  modify  it  under  the  terms  of the GNU Lesser General Public
40       License (version 2.1 or any later version) as  published  by  the  Free
41       Software Foundation.
42
44       Regex.match (3kaya)
45       Regex.quickMatch (3kaya)
46       Regex.replace (3kaya)
47       Regex.split (3kaya)
48
49
50
51Kaya                             December 2010            Regex.compile(3kaya)
Impressum