Hi List, a little thing I have grown quite fond of:
(re-gsub #"\b(?:word|expr|whatever)\b" {"word" "A WORD" "expr" "An Expression" "whatever" "WHATEVER!"} "welcome to the united states of whatever") Patch at http://groups.google.at/group/clojure/web/re-gsub.patch For completeness, I also implemented re-sub with a function as replacement. Never needed it though. Cheers, Juergen --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---