用于验证邮箱格式的正则表达式(仅支持英文及数字):
@H_403_7@/^[A-Za-z\d]+([-_.][A-Za-z\d]+)*@([A-Za-z\d]+[-.]){1,2}[A-Za-z\d]{2,5}$/g
@H_403_7@
例如:
james@outlook.com
james123@outlook.com
@H_403_7@james123@163.com
@H_403_7@james_123@gmail.com
@H_403_7@james.blunt@gmail.com
@H_403_7@zhangsan@w3school.com.cn
@H_403_7@/^[\u4e00-\u9fa5a-zA-Z\d]+([-_.][\u4e00-\u9fa5A-Za-z\d]+)*@([\u4e00-\u9fa5A-Za-z\d]+[-.]){1,2}[\u4e00-\u9fa5A-Za-z\d]{2,5}$/g
@H_403_7@
@H_403_7@例如:
@H_403_7@张三@163.com
@H_403_7@隔壁老王@gmail.com
@H_403_7@隔壁老王@w3school.com.cn
@H_403_7@隔壁@老王.中国
附上正则表达式测试网址:
原文链接:https://www.f2er.com/regex/360675.html