Add function regex? that checks if supplied argument is a regex.Pattern

I found it useful (and it is also implemented in cljs).