3 ms·
No sane person keeps a list of all TLDs in a regex. It's huge and they keep changing.
by gtirloni 5y ago
No sane person keeps a list of all TLDs in a regex. It's huge and they keep changing.
- hunter2_ 5y agoThe regex in OP's screenshot just says that it needs to end with between 2 and 4 characters after the last dot.
- ceejayoz 5y agoYou could concievably regularly grab the list from http://data.iana.org/TLD/tlds-alpha-by-domain.txt http://data.iana.org/TLD/tlds-alpha-by-domain.txt.
- itronitron 5y agoi wonder why they haven't yet added '.corn' as a TLD
- chockchocschoir 5y agoIndeed, that would truly be some insane regex and unfeasible to maintain. Here is the official list of registered TLDs from IANA: https://data.iana.org/TLD/tlds-alpha-by-domain.txt https://data.iana.org/TLD/tlds-alpha-by-domain.txt > Last Updated Wed Mar 16 07:07:01 2022 UTC Have fun keeping up-to-date with it.
- rovr138 5y agoIf you wanted, you could parse the list and build dynamically the tld portion of the regex. But also, you can get the tld and match it against the list, then send an email.