50,528
社区成员
发帖
与我相关
我的任务
分享
String img = "<img src=\"http://image.family234.com/b3c561aa-d7b3-4423-b344-d9402c1c6ed1.jpg\" title=\"\" alt=\"中庸讲记导图.jpg\" width=\"1\" height=\"1\"/>";
Matcher matcher = Pattern.compile("(?<=(src=\"))[^\"]+").matcher(img);
while(matcher.find()) {
System.out.println(matcher.group(0));
}