You are here: Re: [PHP] Valid email address syntax script? « PHP « IT news, forums, messages
Re: [PHP] Valid email address syntax script?

Posted by Jason Sweeney on 05/04/05 18:42

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация