<? include("includes2445.php"); $emails = mysql_query("SELECT email FROM users where id >0;"); echo mysql_error(); while ($newemails = mysql_fetch_array($emails)) { $regexp = "/^([a-zA-Z0-9])+([a-zA-Z0-9\._-])*@([a-zA-Z0-9_-])+([a-zA-Z0-9\._-]+)+$/"; $humm= (!eregi($regexp, $newemails)); echo "<br>$hummis not correct"; } ?> Why doesn't that work? I want to echo emails that don't match the regexp