splitString()

Synopsis

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.

Syntax

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.

Example 1

Intent >splitString("These are words", " ")
--> {"These", "are", "words"} 

Example 2

Intent >splitString("Word", "")
--> {"W", "o", "r", "d"} 

Example 3

Intent >splitString("MiSsIsSiPpI", "s")
--> {"MiS", "I", "SiPpI"}