String-Split

(string-split string1 string2) -> list

Divides string1 at the first occurrence of string2, removing that occurrence. Returns a list containing one or two strings. If string2 is not found within string1, string1 is returned, unmodified.

Examples:

>>(string-split "a,b,c,d" ",")
:: ("a" "b,c,d")
>>(string-split "a,b,c,d" "!")
:: ("a,b,c,d")

See Also: string-split*