1.2.0 permalink Arrow_down_16x16

replace-first-re

clojure.contrib.string

  • (replace-first-re re replacement s)
Replace first match of re in s.

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:189 top

(defn replace-first-re
  "Replace first match of re in s."
  {:deprecated "1.2"}
  [^Pattern re ^String replacement ^String s]
  (.replaceFirst (re-matcher re s) replacement))
Vars in clojure.contrib.string/replace-first-re: defn re-matcher
Used in 0 other vars

Comments top

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