split
Split the string using the specified delimiter and return an array of substrings.
str | split(separator) returns array of [string]
Params
-
strstring: 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?