Syntax
split(string[,string])
Description
The split() function splits a string into an array. An optional seconds string specifies the separator otherwise each character in the string a separated.
Example
a="This is a sentence" println(split(a)) println(split(a, " ")) println(split(a, "is")) ["T", "h", "i", "s", " ", "i", "s", " ", "a", " ", "s", "e", "n", "t", "e", "n", "c", "e"] ["This", "is", "a", "sentence"] ["Th", " ", " a sentence"]