4 ms·
Slightly off topic, but even with access to the RFC you weren't likely to get that one right. Validating any email address correctly with a regex is nearly imp
by w1nk 14y ago
Slightly off topic, but even with access to the RFC you weren't likely to get that one right. Validating any email address correctly with a regex is nearly impossible (a canonical example of the horror: http://ex-parrot.com/~pdw/Mail-RFC822-Address.html http://ex-parrot.com/~pdw/Mail-RFC822-Address.html and even that one has a limitation or 2). I think the only correct answer to that question is to suggest an alternative to a regular expression. It could be that was the answer they were looking for.