62,046
社区成员
发帖
与我相关
我的任务
分享
string flag = string.Empty;
string str = "27156155588@qq.com(存在) 、lbdddooo123@yahoo.com.cn";
MatchCollection matches = reg.Matches(str);
for (int i = 0; i < matches.Count; i++)
{
flag += matches[i].Value;
}
Response.Write(flag);
Regex reg = new Regex(@"[a-zA-Z0-9_]+([-+.][a-zA-Z0-9_]+)*@[a-zA-Z0-9_]+([-.][a-zA-Z0-9_]+)*");