Re: Valid email address syntax script?

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

 



Borrowed with great reverence from http://ca3.php.net/function.mail:

$regex = '^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]{2,})+$';
if (eregi($regex, $email))
   return true;
else
   return false;

jason sweeney
jason.designshift.com



JM wrote:
Does anyone have a nice email address syntax checking script they'd
like to share? Regular expression-based anyone? TIA.


-- 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