chickadee » string-utils » string-split-chars

string-split-chars STR #!optional DELIMITERSprocedure

Returns a list of substrings of STR & a list of the characters, from DELIMITERS, separating those substrings.

STR
string ; version string.
DELIMITERS
string ; string of version component delimiter characters, default ".,".
(string-split-chars "a.2,c" "$,.")
;=> ("a" "2" "c") (#\. #\,)