50,543
社区成员
发帖
与我相关
我的任务
分享
String str = "<img src=\"/upload/20130715210614730433.jpg\" alt=\"\" height=\"156\" align=\"right\" width=\"300\" />asdf<dd/>";
Pattern p=Pattern.compile("(<img .*?/>)");
Matcher m=p.matcher(str);
while(m.find()){
System.out.println(m.group(1));
}