Defun: SplitString( String, $source, String, $delim ) @{...} List;
Description: Returns a list of all the words formed by splitting a given source into "words", delimited by given characters If $delim is the empty string, i.e., "", then it returns a list of all the characters in $source as single-character strings. Examples: Simple case. Second arg is a single space. splitString("These are words"; " ") => {"These"; "are"; "words"} Punctuation is not removed unless requested. splitString("These are words."; " ") => {"These"; "are"; "words."} Here there are two delimiters, either is removed. splitString("These are words."; ". ") => {"These"; "are"; "words"} Multiple occurrences of the delimiters are ignored. splitString("Two words"; " ") => {"Two"; "words"} If no delimiter is supplied, it splits into characters. splitString("Word"; "") => {"W"; "o"; "r"; "d"} Input Arguments: source - Specify the string to split delim - Specify the character on which to split the string Returns: List - Characters separated by given delimiter See Also: