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: >> >> [EMAIL PROTECTED] > > 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php