Simple code to validate an email string against a compiled regular expression, along with code/libs for testing.