从文本中获取<img>的src路径:
// String img = "<img.*src=(.*?)[^>]*?>"; // 获取图片url
String img = "src\\s*=\\s*\"?(.*?)(\"|>|\\s+)";// 获取图片src
Matcher matcher = Pattern.compile(img).matcher(picContent.getContent());
List<String> listImgSrc = new ArrayList<String>();
while (matcher.find()) {
listImgSrc.add(matcher.group());
// String o_path = matcher.group(1);
// int num = o_path.indexOf("/", o_path.indexOf("/") + 1);
// bashpath = o_path.substring(0, num + 1);
}