Skip to main content

split

functionv1.2

clojure.string/split

Available in:BBCLJCLJS
(split [s re] [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.

No examples yet. Be the first to add one!