Skip to content

kumo.string.split_ascii_whitespace(STRING)

Since: Version 2024.09.02-c5476b89

The functionality described in this section requires version 2024.09.02-c5476b89 of KumoMTA, or a more recent version.

Splits STRING by ASCII whitespace,.

To split by unicode White_Space instead, use split_whitespace.

assert(
  kumo.json_encode(
    kumo.string.split_ascii_whitespace 'Mary had a little lamb'
  ) == '["Mary","had","a","little","lamb"]'
)