Skip to main content

$$split

Splits a string using a given delimiter/regex

Usage​

"$$split(<delimiter>,[limit]):{input}"

Returns​

string[]

Arguments​

ArgumentTypeValuesRequired / Default ValueDescription
delimiterstringYesDelimiter to split by (can be a regular expression)
limitinteger0 (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"]