This is what I have used.

<?
if(eregi("^[_.+a-z0-9-]+@[a-z0-9-]+(\.[a-z0-9-]+)*(\.([a-z]){2,4})\$",
$email)){
        echo "Good Email!";
}
?>


Here is an excellent article on Regular Expressions.

Learning to Use Regular Expressions by Example
http://www.phpbuilder.com/columns/dario19990616.php3


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

Reply via email to