日期:2014-05-20 浏览次数:20686 次
public static void main(String[] args) { String str = "描述相符:<a target=\"_blank\" href=\"http://rate.taobao.com/user-rate-3c711a5d6e5d6c7a62921cde77bafd40.htm\"><em class=\"count\" title=\"4.7998分\">4.7</em>"; str += "<span class=\"rateinfo\" title=\"计算规则:(同行业平均分-店铺得分)/(同行业平均分-同行业店铺最低得分)\"> "; str += "<b>高于</b><em>27.00%</em> "; str += "</span></a> "; str = str.replaceAll("<.*?>", ""); System.out.println(str); }