Mark Derricutt wrote: > 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))
There is re-gsub in clojure-contrib.str-utils. Regards, BG -- Baishampayan Ghose <[email protected]> oCricket.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---
