需满足的验证逻辑:
邮箱验证的正则表达式:
^[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z0-9]{2,6}$
测试例子:
不满足校验逻辑
:
- 441030517@QQ..com
- 119941779@qq,com
- 5579001QQ@.COM
- 1107531656@q?q?.com
- 654088115@@qq.com
- 495456580@qq@139.com
- 279985462@qq。com.cn
- chen@foxmail.com)m
- 2990814514@?£QQ.COM
- xxxxxxxxx@_.com.cn (严格版校验不通过)
- xxxxxxxxx@wwew_163sadasdf.com.cn (严格版校验不通过)
满足逻辑的
:
- xxxxxxx@163.com
- xxxxxxxxx@wwew-163.com.cn
- hjkjhk@645654.2121-6878.com.wcn