Re: Email Verification
| From: | Andrew Ballard | Date: | Thu, 18 Sep 2008 13:46:13 +0000 |
| Subject: | Re: Email Verification | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-280438@lists.php.net to get a copy of this message | ||
On Thu, Sep 18, 2008 at 2:09 AM, Per Jessen <per@computer.org> wrote:
> Lupus Michaelis wrote:
>
>> Richard Heyes a écrit :
>>
>>> New domain name extensions can be accounted for easily, eg:
>>>
>>> \.(?:[a-z]){2,4}
>>
>> It excludes .museum tld.
>
> Don't make assumptions about which TLDs that are or are not allowed -
> the domain part of an email address could be validated with this:
>
> @[a-z0-9][a-z0-9-]*(\.[a-z0-9][a-z0-9-]*)+
>
> A test for total length and valid use of hyphens should be added. See
> RFC1034. Then look up the A record.
>
>
>
> /Per Jessen, Zürich
>
I don't know that it would add much benefit, but you could
periodically download a TLD list from IANA and compare that last
segment to the list.
Andrew