mirror of
https://github.com/mailscope/kumomta.git
synced 2026-08-19 19:08:17 +00:00
315 B
315 B
kumo.string.rsplit(STRING, PATTERN)
{{since('2024.09.02-c5476b89')}}
Splits STRING by PATTERN in reverse order, returning an array-style table
holding the substrings.
assert(
kumo.json_encode(kumo.string.rsplit('Mary had a little lamb', ' '))
== '["lamb","little","a","had","Mary"]'
)