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

As per html5 spec the recommended regex is:



This will not match addresses with non latin characters.

Yep, shouldn't the right answer be: accept whatever the user gave you, validate it with a link in the email you send that they've received it.

Should be even more important if you ever intend to do business with say someone from China. Good luck dealing with validating hanji in an email.

Addresses do not have non Latin characters.

Relying on standards that new for something like email would be a mistake IMO. Ymmv.

You are missing a * just before the $.

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