Re: Re: Email validation

From: Date: Fri, 14 Jun 2002 06:41:54 +0000
Subject: Re: Re: Email validation
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-102170@lists.php.net to get a copy of this message
On Fri, 14 Jun 2002, Manuel Lemos wrote: > On 06/14/2002 03:06 AM, Miguel Cruz wrote: >> On Fri, 14 Jun 2002, Manuel Lemos wrote: >>> The following classes use this validation regular expression string. >>> It does not exclude some invalid addresses but includes all valid >>> addresses. >>> >>> >>> "^([-!#\$%&'*+./0-9=?A-Z^_a-z{|}~?])+@([-!#\$%&'*+/0-9=?A-Z^_a-z{|}~?]+\\.)+[a-zA-Z]{2,4}\$" >> >> It doesn't, as far as I can tell, allow this valid address: >> >> webmaster@musedoma.museum > > I never heard of TLD with more than 4 characters. Is this recent? About a year old, I think. Not that it's being used a whole lot yet, admittedly. >> And what's with all the nonsense characters in the domain name portion? >> Only letters, numbers, hyphen, and period are allowed after the @ sign. > > I just followed the BNF of the RFC to figure which characters would > eventually be valid. At least it does not exclude valid characters. The RFCs would also suggest that the final component of a domain could be longer than 4 characters. In fact, accommodating that has been a clear operational requirement for some time, as it's long been threatened that such domains would exist in the primary root, and for people who use the various splinternet alternate roots, it's been reality for years. miguel

« previous php.general (#102170) next »