explode |
Discworld efun help |
explode |
string *explode(string str, string del)
Return an array of strings, created when the string str is splitted into substrings as divided by del. The str must end with del if the last part is wanted too.
Example: explode(str, " ") will split the string @code{str} into an array of words as separated by spaces in the original string. The array is returned.
See also
sscanf, extract.