Thanks, just what i was looking for!

-Chris

On Feb 13, 9:04 pm, Fred Concklin <fredconck...@gmail.com> wrote:
> Christopher Maggio <christopher.m.mag...@gmail.com> writes:
> > Hi, clojure newbie here;
>
> > I have a quick question, I am writing a small pattern matching program
> > and I can't figure out how to append a string to a # for re-matcher:
>
> Not quite following, but check out re-pattern
> (http://clojuredocs.org/clojure_core/clojure.core/re-pattern).
>
> > (.replaceAll (re-matcher #"ATGCCC" my_String) replacement_String)
>
> > When I try (string? #"ATGCCC") it returns false.
>
> It should return false; it is not a string.
>
>   user=> (string? #"ATGCCC")
>   false
>   user=> (type #"ATGCCC")
>   java.util.regex.Pattern
>   user=> (string? "ATGCCC")
>   true
>
> > # isnt a macro symbol is it? Thanks in advace
>
> Check out the Macro characters -> Dispatch section on this page:
>
> http://clojure.org/reader
>
> fpc

-- 
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