/ Published in: PHP
Expand |
Embed | Plain Text
function valid_email($str) { return ( ! preg_match("/^([a-z0-9\+_\-]+)(\.[a-z0-9\+_\-]+)*@([a-z0-9\-]+\.)+[a-z]{2,6}$/ix", $str)) ? FALSE : TRUE; }
You need to login to post a comment.
ajbatac on 01/11/08
5 people have marked this snippet as a favorite
vali29
vilebender
soroush
kdaviesnz
JimiJay
function valid_email($str) { return ( ! preg_match("/^([a-z0-9\+_\-]+)(\.[a-z0-9\+_\-]+)*@([a-z0-9\-]+\.)+[a-z]{2,6}$/ix", $str)) ? FALSE : TRUE; }
You need to login to post a comment.