I want to build a regular expression pattern literal (I think that's
what they're called) like #"a.*" out of separate strings like "a" and
".*".

user> (re-seq #"a.*" "bab")   ; this is cool
("ab")
user> (re-seq #(str "a" ".*") "bab")  ; but this, in all its noobness,
is not
; Evaluation aborted.
user> #(str "a" ".*")
#<user$eval__4569$fn__4571 [EMAIL PROTECTED]>  ; what
is this thing?  can I use it somehow?

I appreciate the help.

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

Reply via email to