String str = "http://image.baidu.com/search/detail/cc.jpg5555http://image.baidu.com/search/detail/5033.jpeg";
String regex = "http://image.baidu.com/search/detail/(?!(\\.jpg|\\.jpeg|\\.png)).+?(\\.jpg|\\.jpeg|\\.png)";
Pattern p = Pattern.compile(regex);
Matcher ma = p.matcher(str);
while(ma.find()) {
System.out.println(ma.group());
}

1258

被折叠的 条评论
为什么被折叠?



