1.3.0 permalink Arrow_down_16x16

re-matcher

clojure.core

  • (re-matcher re s)
Returns an instance of java.util.regex.Matcher, for use, e.g. in
re-find.

1 Example top

  • user=> (def *matcher* (re-matcher #"\d+" "abc12345def"))
    #'user/*matcher*
    
    user=> (re-find *matcher*)
    "12345"
Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/core.clj:4255 top

(defn re-matcher
  "Returns an instance of java.util.regex.Matcher, for use, e.g. in
  re-find."
  {:tag java.util.regex.Matcher
   :added "1.0"
   :static true}
  [^java.util.regex.Pattern re s]
    (. re (matcher s)))
Vars in clojure.core/re-matcher:
Used in 0 other vars

Comments top

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