Created
November 28, 2012 03:13
-
-
Save ziluo/4158815 to your computer and use it in GitHub Desktop.
JS验证邮箱正则表达式
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var myreg = /^([a-zA-Z0-9]+[_|_|.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|_|.]?)*[a-zA-Z0-9]+.[a-zA-Z]{2,4}$/; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
无法匹配啊
不信你自己测试这里的文本 view-source:https://www.ncbi.nlm.nih.gov/pubmed/26769084