5 ms·
The only real regex that would be relatively future-proof is one that checks that there is a "@" and a "." somewhere in the address, and that the "@" comes befo
by chockchocschoir 5y ago
The only real regex that would be relatively future-proof is one that checks that there is a "@" and a "." somewhere in the address, and that the "@" comes before the last ".". Anything else is a fool's errand.
Actually, even trying to use regex to see if a email is valid is a fool's errand, but if you have to, the rule above is the only thing you could do. You really need to send a email to address and ask the user to input something from the email in order to actually validate it.
- yakak 5y agoICANNlandgrab@sony
- chockchocschoir 5y agoGreat work, I put three basic rules in my comment and you failed two of them :)
- Avamander 5y agoTheoretically a MX record on a TLD is valid, but I doubt many try to use that.
- Brian_K_White 5y agoI noticed that .nft was missing and spent about 30 minutes trying to google how one goes about registering for one and gave up. Someone else will make that killing.
- rovr138 5y agothat means that this is valid, @.
- Avamander 5y agoThey did say "there is a" not "there is only a". In the end it doesn't matter though, they can't get confirmation mail delivered to that and nothing bad happens.