nulil

使用方法: (grep re coll)

正規表現によってcollの要素をフィルタリング。

coll各要素の文字列表現をre-find関数でテストしている。

1 user=> (use '[clojure.contrib.str-utils2 :only (grep)])
2 nil
3 user=> (grep #"_+" ["abc" "def_" "_ghi" "jkl"])
4 ("def_" "_ghi")