split
Splits a string into a collection of its parts, delimited by separator.
.split {A, B, C}::foreach
The part is .1Content copied to clipboard
.var {date} {2026-10-24}
.date::split separator:{-}::first <!-- 2026 -->Content copied to clipboard
Return
a new collection containing the parts of string, in order. An empty string produces an empty collection
Parameters
string
string to split
separator
- Optional
- Likely named
string that delimits the parts. Defaults to ,