Need help on Replace

2011-07-21 Thread Tuba Lambanog
Hello, Alas, spent hours on this but can't get it to work. It's looking for a pattern: r between any vowels, then replace r with l. (clojure.string/replace-first The coror is red. #([aeiou])(?:r) ([aeiou]) #(str %1 l %2)) #CompilerException java.lang.IllegalArgumentException: Wrong number of

Aw: Need help on Replace

2011-07-21 Thread Meikel Brandmeyer
Hi, the anonymous function takes only one argument which contains the matches. You have to extract the data from there. user= (clojure.string/replace The coror is red. #([aeiou])(?:r)([aeiou]) (fn [[_complete-match left-vowel right-vowel]] (str left-vowel l right-vowel))) The color is red.

Re: Need help on Replace

2011-07-21 Thread Tuba Lambanog
This works! I really appreciate your help. Thank you very much. On Jul 21, 2:33 am, Meikel Brandmeyer m...@kotka.de wrote: Hi, the anonymous function takes only one argument which contains the matches. You have to extract the data from there. user= (clojure.string/replace The coror is red.