正则表达String reg="(\w[-._\w]*\w@\w[-._\w]*\w\.\w{2,3})";
if(string.matches(reg))
....
匹配
[email protected], [email protected]不匹配
aa@bb ,[email protected]
if(string.matches(reg))
....
匹配
[email protected], [email protected]不匹配
aa@bb ,[email protected]
比如[email protected] 我想知道是否真的有[email protected]这个邮件地址
用java mail的话 无论有否这个地址都返回成功,只不过会收到退信而已。