mirror of
https://github.com/KumoCorp/kumomta.git
synced 2026-08-19 16:01:08 +00:00
281 B
281 B
kumo.string.split(STRING, PATTERN)
{{since('dev')}}
Splits STRING by PATTERN, returning an array-style table
holding the substrings.
assert(
kumo.json_encode(kumo.string.split('Mary had a little lamb', ' '))
== '["Mary","had","a","little","lamb"]'
)