News for hackers. Stuff that matters.
Re:ICANN Approves generic top-level domains by oinopion on Monday June 20, 2011 @04:37AM (#2673407)
Cool, they have just broken most of email regexps.
Re:ICANN Approves generic top-level domains by kijeda on Monday June 20, 2011 @05:17AM (#2673475)
No. There are 307 top-level domains right now and ICANN has added several dozen top-level domains in the last year and your regexp is probably already broken. You can be sure anyone using regular expressions has not been matching them correctly for some time. If you are using regexps, you're doing it wrong.
Re:ICANN Approves generic top-level domains by danssig on Monday June 20, 2011 @07:27AM (#2673700)
Legacy is a drag on any system. It has to be supported for those who followed best practices but not for those who followed worst practices. Don't hold progress back for them.
Re:ICANN Approves generic top-level domains by heyimfromreddit on Monday June 20, 2011 @04:46AM (#2673418)
Funny, but email validations should already just check that the address contains an @ symbol and leave it at that.
Re:ICANN Approves generic top-level domains by mdpm on Monday June 20, 2011 @05:07AM (#2673456)
uh, nope. Email validation should check there's a valid MX record for the domain in question, and leave it at that.
Re:ICANN Approves generic top-level domains by Luyt on Monday June 20, 2011 @06:21AM (#2673588)
Or a valid address record. Mailers fall back to 'A' records in the absence of a 'MX' record.
Re:ICANN Approves generic top-level domains by mdpm on Monday June 20, 2011 @06:38AM (#2673627)
yes, and we could continue into checking something is actually listening for mail there, etc. But you get my point :)
Re:ICANN Approves generic top-level domains by jannes on Monday June 20, 2011 @04:58AM (#2673438)
They should also check that neither part is empty. But other than that you are right.