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

NAME

6       Regex::replace - Replace a compiled pattern with a string.
7

SYNOPSIS

9       Void  replace(  Regex keyre, String new, var String str, [ReplaceFlags]
10       fl=createArray(1) )
11

ARGUMENTS

13       keyre A compiled regular expression
14
15       new The string to replace matches with
16
17       str The string to search for matches (will be edited in place).
18
19       fl A list of Regex.ReplaceFlags (3kaya) options. This parameter may  be
20       omitted and defaults to the empty list.
21

DESCRIPTION

23       Replace  the first match (or all matches if fl contains Global ) of key
24       with new in the String str
25
26       new may contain back references into the pattern, $1,  $2,  etc,  which
27       stand for sub-matches.
28

AUTHORS

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

LICENSE

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