how can i check to see if a email format is correct , i've seen a few examples using 'eregi' but the manual says against using it.
I have this but get the below error
$email = mysql_real_escape_string($_POST['email']);
if (preg_match("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $email)){
echo "That email address is incorrect.<br>";
$email = "";
$err = 1;
}
Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in E:\wamp\www\register.php on line 114
what to do?