1.2.0 permalink Arrow_down_16x16
  • (grep re coll)
Filters elements of coll by a regular expression. The String
representation (with str) of each element is tested with re-find.

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/string.clj:309 top

(defn grep
  "Filters elements of coll by a regular expression.  The String
  representation (with str) of each element is tested with re-find."
  [re coll]
  (filter (fn [x] (re-find re (str x))) coll))
Vars in clojure.contrib.string/grep: defn filter fn re-find str
Used in 0 other vars

Comments top

No comments for grep. Log in to add a comment.