uce/site/doc/pages/split_space.txt

20 lines
448 B
Plaintext

:sig
StringList split_space(String str)
:params
str : string to be split
return value : a list of strings
:see
>string
:content
Splits `str` on runs of whitespace.
Multiple adjacent whitespace characters are treated as a single separator, so repeated spaces, tabs, or line breaks do not create empty entries.
Related:
- PHP: whitespace splitting via `preg_split(/\s+/, ...)`
- JavaScript / Node.js: regex-based splitting with `split(/\\s+/)`