A Clojure library to provide regular expression utilities in particular designed to allow composing regexs.
;compiled at macro time
(re/and #"a" #"b")
=> #"(ab)"
;compiled at run time
(re/or #"a" (re-pattern "b"))
=> #"(a|b)a"
;compiled at macro time
(re/or #"a" (re/and #"b"))
=> #"(a|(b))"
;compiled at run time
(def def-re #"bc")
(let [local-re #"ef"]
(re/or def-re local-re))
=> #"(bcd|bcd)"
Copyright © 2017 Colin Taylor & Contributors
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.