81,091
社区成员
发帖
与我相关
我的任务
分享
String str="<a><Br/><a><br><p style=\"xxxxxx\"></p> ";
String regex="<(?!BR)[^<>]*\\/?>";
Pattern p =Pattern.compile(regex,Pattern.CASE_INSENSITIVE);
Matcher m=p.matcher(str);
String newStr = m.replaceAll("");
System.out.println(newStr);