代码如下:
Pattern p = Pattern.compile("<img[^<>]*?\\ssrc=['\"]?{.*?}['\"]?\\s.*?>");
Mather m = p.matcher(html);
while(m.find()) {
imgPath = m.group(1);
}
代码如下:
Pattern p = Pattern.compile("<img[^<>]*?\\ssrc=['\"]?{.*?}['\"]?\\s.*?>");
Mather m = p.matcher(html);
while(m.find()) {
imgPath = m.group(1);
}