Thanks Stuart. Got it working now.

jan.

On Jul 21, 2:28 pm, Stuart Halloway <stuart.hallo...@gmail.com> wrote:
> Hi Jan,
>
> These functions in contrib are deprecated (and will be marked so as soon as 
> we have time to make a pass through contrib).
>
> Please use the functions in clojure.string.
>
> Stuart Halloway
> Clojure/corehttp://clojure.com
>
>
>
> > Hi,
>
> > I'm using replace-str and replace-first-str (from clojure-contrib
> > 1.2.0-beta1), and it seems that these do not have the same
> > functionality contrary to their descriptions.The following code will
> > work with the regular (replace-str), but (replace-first-str) returns
> > an error:
>
> > user=> (replace-str "a" "f" "abcabc")
> > "fbcfbc"
> > user=> (replace-first-str "a" "f" "abcabc")
> > java.lang.ClassCastException: java.lang.String cannot be cast to
> > java.util.regex.Pattern (NO_SOURCE_FILE:0)
>
> > Is this the expected behaviour?
>
> > jan.
>
> > --
> > 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
> > Note that posts from new members are moderated - please be patient with 
> > your first post.
> > 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

-- 
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
Note that posts from new members are moderated - please be patient with your 
first post.
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