Good way to replace the usual regular expression for email checking.
That way is via filter_var() php function which do the email validation 10 times faster.
< ?php
$email = "[email protected]";
if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
echo "Invalid email address";
}
?>