PHP判断邮箱地址是否合法的正则表达式:
function checkEmail($inAddress){ return (preg_match("/^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(.[a-zA-Z0-9_-])+/i",$inAddress)); }