Hello friends I have my website completely made in PHP. But I m stuck in the Email address validation. How can i do that with PHP. Thanks
Try: function is_email($str){ return preg_match("/^[a-z0-9,!#\$%&'\*\+\/=\?\^_`\{\|}~-]+(\.[a-z0-9,!#\$%&'\*\+\/=\?\^_`\{\|}~-]+)*@([a-z0-9]([a-z0-9-]*[a-z0-9])?\.)+([a-z]{2}|com|org|net|gov|mil|biz|tel|info|mobi|name|aero|jobs|museum)$/",$str); } PHP: The email will have to be lowercase as well so make sure you pass it through strtolower() first.