日期:2014-05-20 浏览次数:20764 次
public class Tee{
public static void main(String[] args){
String s = "aa <bb cccc=''>eeee www <w oo='eee'> <qqq iii='xxx' > ssss d</a>aaa oooo";
String regex = " (?=[\\w \\=']*<.*>
------解决方案--------------------
[\\w ]*$)";
System.out.println(s.replaceAll(regex, "-"));
}
}