Added regex validator (closes #29).
Improved typo.
Improved tests.
Fixed import for Python 3.