split
Splits the given string using the specified separator and returns an array of the substrings.
str | split(separator) returns an array of strings.
Required params
-
strstring: The original string. -
separatorstring: The separator.
Example
{{#var words = "Festive Cheer Gift Box" | split(" ") /}}
{{#for word in words}}
word: {{ word }}
{{/for}}
Was this article helpful to you?