Even that is wrong because you can have privately owned TLDs (I forget what they're technically called) like .google
So sundar.pichai@google is technically a valid address (whether .google has any MX records is another matter) Regex shouldn't really be used for email addresses anyway because the only reliable way to authenticate an email address is to literally send an email to that address.
Comments (129) 40 threads
Show all comments
Showing thread 19 of 40
2 points:
which removes the 2 ampersands problem.1. it fiddled with my back button which is a bit annoying
2. a better email sample is
I think I know what's wrong with your back button. I will fix it.
And for the regex. will try it out and see if I can add it.
So sundar.pichai@google is technically a valid address (whether .google has any MX records is another matter)
Regex shouldn't really be used for email addresses anyway because the only reliable way to authenticate an email address is to literally send an email to that address.
i.e. johndoe@com will never exist
Continue this thread — 2 replies