common-lisp sequence - how to split a sequence SPLIT-SEQUENCE in LIspWorks


Example

Simple split of an IP number string.

> (lispworks:split-sequence "." "127.0.0.1")
  ("127" "0" "0" "1")

Simple split of an URL:

> (lispworks:split-sequence ".:/" "http://127.0.0.1/foo/bar.html"
                            :coalesce-separators t)
("http" "127" "0" "0" "1" "foo" "bar" "html")