Splits source into "words", delimited by characters from delim. Returns a list of all the words. If delim is the empty string , then it returns a list of all the characters in source as single-character strings . If the delimiters include any letters, they are compared in a case-sensitive fashion.
splitString ( source As String, _ delim As String ) As List
Argument | Type | Description |
---|---|---|
source | String | The string to split. |
delim | String | One or more characters to use as delimiters. |
Intent >splitString("These are words", " ") --> {"These", "are", "words"}
Intent >splitString("Word", "") --> {"W", "o", "r", "d"}
Intent >splitString("MiSsIsSiPpI", "s") --> {"MiS", "I", "SiPpI"}