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

NAME

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

SYNOPSIS

9       String  replaced(  Regex  keyre, String new, 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.
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. Returns a new string.
28
29       str  may  be  a  Tainted string. This function will return an untainted
30       string
31

AUTHORS

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

LICENSE

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