php邮箱验证正则表达式

function is_email($str) {
    return strlen($str) > 6 && preg_match("/^[\w\-\.]+@[\w\-\.]+(\.\w+)+$/", $str);
}

猜你喜欢

转载自blog.csdn.net/weixin_58881595/article/details/118156173