split
function, since version 1.1.5
categories: arrays, strings
split(str, delimiter)
the split function is used to split a str
string into an array of substrings
parameters
- str: string - input string
- delimiter: string - specifies the string to use for splitting the string
return type:
array[string]
example
join(split('a:b:c:d:e', ':'), '-')
join(split('a:b:c:d:e', ':'), '')
join(split('a:b:c:d:e', ':'), ', ')
returns
a-b-c-d-e
abcde
a, b, c, d, e