public String Replace(String str,String newstr){
Pattern p = Pattern.compile(this.getB().getReplace()); //this.getB().getReplace() = <(?!br)[^>]+>
Matcher m = p.matcher(str);
while(m.find()){
str = str.replaceAll(m.group(), newstr);
}
return str;
}为什么把HTML代码替换不掉呢我要除了<br> 以外的HTML代码全部去掉