On Sun, Mar 31, 2013 at 10:46 PM, Andy Fingerhut
<andy.finger...@gmail.com>wrote:

> If you print it as a string, then want to read it back in and convert back
> to a regex, you must read it as a string, then call re-pattern on it.  That
> should preserve the original meaning.
>
> Printing it as a string, and trying to read it as a regex by prepending it
> directly with # before the " of the string, would definitely change the
> meaning of the regex in the case you mention, and many many others.
>
> Andy
>
>
Yeah, my goal is simply to get (re-pattern #"a\nb") to print (or more
precisely, pr) as #"a\nb" without affecting the semantics of printing other
regular expressions, but that seems to be impossible to achieve.  Sigh...

-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to