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

NAME

6       Regex::split - Split a string into substrings.
7

SYNOPSIS

9       [String]   split(   String   patt,   String   str,  Int  limit=0,  Bool
10       allowempty=false )
11

ARGUMENTS

13       patt The pattern string
14
15       str The String to split
16
17       limit The maximum number of pieces (from the left) to split  str  into.
18       If  this  is parameter is omitted or set to zero an unlimited number of
19       pieces will be allowed.
20
21       allowempty If this is true, then consecutive delimeters will be treated
22       as  having  an  empty  string between them. If it is false (or omitted)
23       then consecutive delimeters will be treated as one.
24

DESCRIPTION

26       Using patt as a delimeter, split str into substrings.
27
28
29    x = "a,b,c";
30    xs = split(",",x); // ["a","b","c"]
31    xs = split(",",x,1); // ["a","b,c"]
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.split (3kaya)
45
46
47
48Kaya                             December 2010              Regex.split(3kaya)
Impressum