正则表达式实现去掉数据中中指定的内容:
实现去掉文本数据中: img_width=="640" img_height="360" 的全部内容
String replace = contentresults.replaceAll("img_width="\d+"", " "); String replace2 = replace.replaceAll("img_height="\d+"", " ");