note 15315 deleted from function.checkdnsrr by jimw
| From: | jimw@php.net | Date: | Fri, 07 Dec 2001 02:20:12 +0000 |
| Subject: | note 15315 deleted from function.checkdnsrr by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-21819@lists.php.net to get a copy of this message | ||
[Editor's note: Not all email can be matched w/ your regexp. Also a well-formed email does not
assure the existence of the mailbox. Check the Internet mail RFC for more information (RFC 822), see
also: http://www.imc.org/rfcs.html]
how about preg_match and:
$rex="/^[\w-]+(\.[\w-]+)*@\w+(\.[\w-]{2,3})$/";
if (preg_match ("$rex", "_Kla.3M-er@f.fe_" ))
{
print "valid email";
}