$$split
Splits a string using a given delimiter/regex
Usage​
"$$split(<delimiter>,[limit]):{input}"
Returns​
string[]
Arguments​
Argument | Type | Values | Required / Default Value | Description |
---|---|---|---|---|
delimiter | string | Yes | Delimiter to split by (can be a regular expression) | |
limit | integer | 0 (No limit) | Limit the amount of elements returned (and by that, the amount the pattern get matched) |
Examples​
Input
Definition
Output
"a,b,c"
"$$split(','):$"
["a","b","c"]
"hello world"
"$$split(ll?):$"
["he","o"," wor","d"]
"hello world"
"$$split(o,2):$"
["hell"," world"]