Kaya 0.5.2 reference for Regex::split

List of functions and data types in Regex

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

Arguments

Usage

Using patt as a delimeter, split str into substrings.

x = "a,b,c";
xs = split(",",x); // ["a","b","c"]
xs = split(",",x,1); // ["a","b,c"]

Related

kaya@kayalang.org | Last modified 29 November 2011 | Supported by Durham CompSoc | Powered by Kaya