Macro example: regex


#1

Originally published at: https://purelyfunctional.tv/clojure-macros/macro-example-regex/
Let’s build an interesting macro to simulate regular expression features of Perl and Ruby: automatically binding locals to the match and groups.