日期:2014-05-20 浏览次数:20664 次
try { String str = "<a>sdfa<b>s<br/>df<a><form><a/></form>xxxx<br/><b>"; str = str.replaceAll("</?[^>]+?(?<!br/?)>",""); System.out.println(str); } catch (Exception e) { e.printStackTrace(); }