function | since v0.0-927 | clojure.core/re-seq | Edit |
(re-seq re s)
Returns a lazy sequence of successive matches of regex re
in string s
.
Returns a lazy sequence of successive matches of re in s.
(defn re-seq
[re s]
(if (string? s)
(re-seq* re s)
(throw (js/TypeError. "re-seq must match against a string."))))