Support passing in of RegExps through programmtic interface.
Merge pull request #18 from jharding/support-regex-values-for-regex

Support passing in of RegExps for regex property