I've written a URI library for Clojure, whose functions work on a custom Uri type, java.net.URI, java.net.URL, and java.lang.String.
The source and some documentation (in the README) can be found at https://github.com/wtetzner/exploding-fish. Example usage: user> (scheme "http://www.example.com/") "http" user> (scheme (URI. "http://www.example.com/")) "http" user> (fragment (URL. "http://www.example.com/#fragment")) "fragment" user> (fragment (uri "http://www.example.com/#fragment")) "fragment" user> (fragment (uri "http://www.example.com/#fragment") nil) #<Uri http://www.example.com/> user> (host "http://www.example.com/#fragment" "www.bovinegenius.org") "http://www.bovinegenius.org/#fragment" user> (fragment (URI. "http://www.example.com/#fragment") "it-works-on- java-uris") #<URI http://www.example.com/#it-works-on-java-uris> -- 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