正则提起图片地址
?提取的java代码
public static String extractImgUrl(String content) {String regex = ".*?<img.*?src=\\s*["\'](.*?)["\'].*?/>.*";Pattern pattern = Pattern.compile(regex, Pattern.CASE_INSENSITIVE| Pattern.DOTALL);Matcher m = pattern.matcher(content);if (m.matches()) {return m.group(1).trim();}return null;}?