哪位朋友帮忙看一下.这个正则表达式:
String regex = "mailto:\w+\?";
匹配下面这段内容为什么匹配不到..
[color=red]
mailto:34553234@qq.com?cc=zhoueyese7290783@126.com&subject=applicationID:10001-action:approver&body=特别无聊.
[/color]
String regex = "mailto:\\w+\\?";
Pattern pattern = Pattern.compile(regex);
Matcher matcher = pattern.matcher(contentItem.getSubject());
if(matcher.find()){
System.out.println("email:"+matcher.group()); //按理说,应该要打印出"34553234@qq.com"
}