It's easy:
(.toString my_regex)
Actually, all Java
(and Clojure
) objects have .toString
method returning its string representation.
There is also a str
function in Clojure, which calls .toString
on each of its arguments and concatenates results:
(str my_regex)
So, it's doing the same thing, but it's pure Clojure.