Java调用replaceAll方法通过正则表达式把HTML字符串中的img标签的src缺省属性值uri补全
class Test {public static void main(String[] args) {String domain = "http://avatar.csdn.net";String html = "";System.out.println(html);html = html.replaceAll("<img(.*?)src=\'((?!http|hppts).*?)", "<