split
To use a filter on a variable in an expression, write the variable then put a |
pipe symbol, then write the filter name:
string|split
This filter has some extra parameters that can be put after the name in brackets:
string|split(delimiter, limit)
Use this to split a string into an array of strings via a separator.
letters = "a,b,c" letters = letters|split(',') # ["a", "b", "c"]