I have the following PHP code that checks if an email is valid:
if (eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@([0-9a-z][0-9a-z-]*[0-9a-z]\.)+[a-z]{2}[mtgvu]?$", $email))
return true;
Works great but I found out today that if I try validate a .info email, it says it's invalid. Any ideas what I need to add/modify to make it return .info emails as valid?
Thanks
Ben