1.2.0 permalink Arrow_down_16x16
  • (re-split pattern string)
  • (re-split pattern string limit)
Splits the string on instances of 'pattern'. Returns a sequence of
strings. Optional 'limit' argument is the maximum number of
splits. Like Perl's 'split'.

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/contrib/str_utils.clj:24 top

(defn re-split
  "Splits the string on instances of 'pattern'.  Returns a sequence of
  strings.  Optional 'limit' argument is the maximum number of
  splits.  Like Perl's 'split'."
  ([^Pattern pattern string] (seq (. pattern (split string))))
  ([^Pattern pattern string limit] (seq (. pattern (split string limit)))))
Vars in clojure.contrib.str-utils/re-split: defn seq
Used in 0 other vars

Comments top

No comments for re-split. Log in to add a comment.