regex

Validate any regular expresion.
Support a string or a RegExp object.