4 ms·
I think an initial test with regex is valid. But you should do a proper email validation link. That being said, you need to be very careful with what regex val
by nerdjon 5y ago
I think an initial test with regex is valid. But you should do a proper email validation link.
That being said, you need to be very careful with what regex validation you are doing. I still use an apple "@me.com" email. Somewhere there is a commonly used library (or commonly used regex copied from stack overflow) that seems to fail because my domain is short. I have had a number of times that I have been unable to get emails because a system flagged it as invalid.
Getting through to support or trying to change my email is always a nightmare in these situations.
So be careful with your assumptions!
- foofoo4u 5y agoSimilar experience for me. Many online forms fail to accept any email extension that isn't ".com", ".net", ".edu" or ".org". I'm surprised, because developers should know better that there are many more extensions beyond these four. Here is a full list of domain extensions available: https://www.name.com/domains https://www.name.com/domains . Let's just say one of these is registered and used as my email. I have found two ways of getting around this issue. 1) Continue registration for a new site using a temporary email. Once logged in, I find I am often allowed to change the email to whatever I want within my user settings. 2) Contact support and request they updated it for me manually. These two work arounds don't always work. But more often than not they do.
- kingcharles 5y agoI have the same problem on about 10% of sites. I had a big ecommerce site go into their DB the other day and update from my temp email to my real. Now my profile is fucked because it validates the email address on the page load.
- teddyh 5y agoHere is the actual, official, list of TLDs: https://www.iana.org/domains/root/db https://www.iana.org/domains/root/db
- foofoo4u 5y agoThank you. I figured there was a more official list out there.