How long can a TLD possibly be?

HellaMad picture HellaMad · Feb 11, 2012 · Viewed 44.3k times · Source

I'm working on an email validation regex in PHP and I need to know how long the TLD could possibly be and still be valid. I did a few searches but couldn't find much information on the topic. So how long can a TLD possibly be?

Answer

tripleee picture tripleee · Feb 11, 2012

DNS allows for a maximum of 63 characters for an individual label.