Replaces the first instance of pattern in s with replacement.
Allowed argument types for pattern and replacement are:
1. String and String
2. regex Pattern and String
(Uses java.util.regex.Matcher.replaceAll)
3. regex Pattern and function
(defmulti
^{:doc "Replaces the first instance of pattern in s with replacement.
Allowed argument types for pattern and replacement are:
1. String and String
2. regex Pattern and String
(Uses java.util.regex.Matcher.replaceAll)
3. regex Pattern and function
"
:arglists '([s pattern replacement])
:tag String}
replace-first
(fn [s pattern replacement]
[(class pattern) (class replacement)]))
Comments top
No comments for replace-first. Log in to add a comment.