Re: Email with pregmatch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



At 1:11 AM -0700 8/31/06, Curt Zirzow wrote:
so the question is does it pass local tests, which should be rather
simple, the domain part gets rather complcated since you cant predict
at what domain level we are talking about:

 local@xxxxxxxxxxxxxxxxxx
 local@xxxxx
 local@xxxxxxx
 local@xxxxxxxxxx

The last email address is not valid because it has no TLD (top level domain) -- that's probably just an omission error.

One thing to add to this topic is multilingual domains, which use PUNYCODE. This is a technique that uses ASCII characters to represent Unicode code points -- a mapping and look-up function.

For IE browsers and many email programs (in fear of homographic attacks) do not translate multilingual domains properly. Instead, multilingual domains will be shown with a "xn--" prefix, such as:

local@xn--<whatever>.TLD

Like:

http://xn--ovg.com

This prefix is probably the last one to be used, but it was not the first.

PUNYCODE was never meant to be seen by the end user, but M$ had other ideas -- if your native language is other than English, apparently M$ doesn't care. IMO, that's a giant step backwards for true global access to the Internet, but I digress.

So, in any evaluation to determine valid email addresses, one should also consider "xn--" appearing at the start of the domain name, such as:

tedd@xxxxxxxxxxx

hth's

tedd

PS: So Curt, what's your solution?
--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux