Skip to content

@str.split

Split a string by a delimiter into an array of strings.

Returns: array

@str.split(s delim)
Name Type Description
s string Source string
delim string Delimiter string
# Split by comma
set $parts @str.split("a,b,c" ",")
# Split by space
set $words @str.split("hello world" " ")