News for hackers. Stuff that matters.
Re:Real Email Validation by micampe on Monday March 18, 2013 @10:28AM (#5394353)
Are single letter domain and tlds allowed?
Re:Real Email Validation by fein on Monday March 18, 2013 @10:36AM (#5394397)
yep, thats why we do a check for a min of 5 chars:

[email protected]

edit: the regex should pick this up by default anyway, given its looking for .+ and not .*, but my validation libs have the min and max length built in as well.

Re:Real Email Validation by micampe on Monday March 18, 2013 @01:24PM (#5395647)
I meant to ask if they are valid in the IETF sense, not in your regex.

Turns out that single letter second level domains are allowed but they are reserved in some TLDs http://en.wikipedia.org/wiki/Single-letter_second-level_doma...

On the other hand, no single letter TLD exists http://data.iana.org/TLD/tlds-alpha-by-domain.txt

And I also just found out in that list that there are IDN TLDs (see punycode toward the end of the list), I didn’t know that. Full decoded list: http://mct.verisign-grs.com/convertServlet?input=XN--0ZWM56D...

I wonder how many validators fail on these.