Hacker News new | past | comments | ask | show | jobs | submit login

Is there some rule that says you must use a regex to validate an email? Just validate it with a more complex parser.

Alternate option: Validate it with a simple regex. If it fails ask the user "Are you sure this email is correct?" If they say yes, then allow it even if it fails validation.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: