Yeti wrote:

> <?php
> # this one worked fine for me, but it does not cover the full RFC
> like: "name" [EMAIL PROTECTED] OR name <[EMAIL PROTECTED]>
> $regex =
> "^[a-z0-9,!#\$%&'\*\+/=\?\^_`\{\|}~-]+(\.[a-z0-9,!#\$%&'\*\+/=\
\^_`\{\|}~-]+)[EMAIL PROTECTED](\.[a-z0-9-]+)*\.([a-z]{2,})$";

For the domain part, I would check against 

"@([a-z0-9-]+\.)+[a-z0-9-]+"

and then do a lookup for an A record.  There are still some patterns
that will fit the above, without being valid domain-names. 


/Per Jessen, Zürich


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

Reply via email to