ClojureDocs

Nav

Namespaces

split

clojure.string

Available since 1.2
  • (split s re)
  • (split s re limit)
Splits string on a regular expression.  Optional argument limit is
the maximum number of parts. Not lazy. Returns vector of the parts.
Trailing empty strings are not returned - pass limit of -1 to return all.