java正则表达式提取邮件地址
发布网友
发布时间:2022-04-23 05:03
我来回答
共1个回答
热心网友
时间:2023-10-15 17:03
private boolean getALlAdress(String email){
String msg = null;
Pattern p = Pattern.compile("\\w+@(\\w+.)+[a-z]{2,3}");
Matcher m = p.matcher(email);
while (m.find())
{
msg =matcher.group();
System.out.println(msg);
}
}