Re: Re: Email validation
| From: | Manuel Lemos | Date: | Fri, 14 Jun 2002 06:26:52 +0000 |
| Subject: | Re: Re: Email validation | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-102163@lists.php.net to get a copy of this message | ||
Hello,
On 06/14/2002 03:06 AM, Miguel Cruz wrote:
On Fri, 14 Jun 2002, Manuel Lemos wrote:I never heard of TLD with more than 4 characters. Is this recent? This classes that I mentioned with this regular expression are used by more than 10.000 users. If this was a problem already, I should have learned. So, I assume TLDs like this are recent.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^_It doesn't, as far as I can tell, allow this valid address: webmaster@musedoma.museuma-z{|}~?])+@([-!#\$%&'*+/0-9=?A-Z^_a-z{|}~?]+\\.)+[a-zA-Z]{2,4}\$"
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. -- Regards, Manuel Lemos