.\" This man page is automatically generated using .\" kayadoc2man from the Kaya development tools and the -xmldocs compile .\" option. Editing it directly is not encouraged. .\" It is under the same license as the source .k file that it was .\" generated from. .TH "Regex.split" "3kaya" "August 2014" "Kaya" "Kaya module reference" .SH "NAME" Regex::split \- Split a string into substrings. .SH "SYNOPSIS" .B [String] split( \fIRegex pattre, String str, Int limit=0, Bool allowempty=false\fP .B ")" .SH "ARGUMENTS" .PP .B "pattre" A compiled regular expression .PP .B "str" The String to split .PP .B "limit" The maximum number of pieces (from the left) to split \fBstr \fP into. If this is parameter is omitted or set to zero an unlimited number of pieces will be allowed. .PP .B "allowempty" If this is true, then consecutive delimeters will be treated as having an empty string between them. If it is false (or omitted) then consecutive delimeters will be treated as one. .SH "DESCRIPTION" .PP Using \fBpattre \fP as a delimeter, split \fBstr \fP into substrings. .SH "AUTHORS" Kaya standard library by Edwin Brady, Chris Morris and others (kaya@kayalang.org). For further information see http://kayalang.org/ .SH LICENSE The Kaya standard library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (version 2.1 or any later version) as published by the Free Software Foundation. .SH "RELATED" .PD 0 .PP .B "Regex.compile"(3kaya) .PP .B "Regex.split_1"(3kaya) .PD 0.4v