Discuss / JavaScript / 签到

签到

Topic source

断桥-过后

#1 Created at ... [Delete] [Delete and Lock User]

一、

var re = /^\w+\.?\w+\@\w+\.\w+$/;

二、

var re = /^\<(\w+\s?\w+)\>\s?(\w+\.?\w+\@\w+\.\w+)$/;

曲率镜头

#2 Created at ... [Delete] [Delete and Lock User]

这才是正解

二、/(?:<(.*)>)*\s*(\w+@\w+\.\w+)/


  • 1

Reply