Does clojure come with a built-in regex replace method?  I see ones for
re-split, re-seq etc. but nothing for a simple replace, I've been using:

(defn replace-all
  [st reps]
  (reduce #(.replaceAll %1 (first %2) (second %2)) st reps))

but wondered if I was just missing some builtin?

-- 
Discouragement is a dissatisfaction with the past, a distaste for the
present, and a distrust of the future - Maree De Jong, Life Church New
Zealand.
http://www.talios.com

Sent from Auckland, Auk, New Zealand

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to