Back

split (clj)

(source)

function

(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.

Examples