<BR>function is_valid_email_address($email){ <BR>$qtext = '[^//x0d//x22//x5c//x80-//xff]'; <BR>$dtext = '[^//x0d//x5b-//x5d//x80-//xff]'; <BR>$atom = '[^//x00-//x20//x22//x28//x29//x2c//x2e//x3a-//x3c'. <BR>'//x3e//x40//x5b-//x5d//x7f-//xff]+'; <BR>$quoted_pair = '//x5c[//x00-//x7f]'; <BR>$domain_literal = "//x5b($dtext|$quoted_pair)*//x5d"; <BR>$quoted_string = "//x22($qtex<div>……本2文来源gaodai.ma#com搞##代!^码@网3</div><code>搞代gaodaima码</code>t|$quoted_pair)*//x22"; <BR>$domain_ref = $atom; <BR>$sub_domain = "($domain_ref|$domain_literal)"; <BR>$word = "($atom|$quoted_string)"; <BR>$domain = "$sub_domain(//x2e$sub_domain)*"; <BR>$local_part = "$word(//x2e$word)*"; <BR>$addr_spec = "$local_part//x40$domain"; <BR>return preg_match("!^$addr_spec$!", $email) ? 1 : 0; <BR>} <BR>