[pmwiki-users] test email adress
Peter K.H. Gragert
p.k.h.gragert at misc.utwente.nl
Sun Oct 25 10:24:43 CDT 2009
Hello,
I just started to use pmforms.php, especially the mail part.
On the site there is an idea to check if an email address contains an
@-sign.
I use this one
function valid_mail($str)
{
return (ereg
('(^[0-9a-zA-Z_-]+(\.[0-9a-zA-Z_-]+)*@([0-9a-zA-Z_\-]{1,}\.)+[0-9a-zA-Z]{2,}
$)', $str));
}
Is there an even (much) better one?
Greets
Peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20091025/aa6b5b99/attachment-0001.html
More information about the pmwiki-users
mailing list