日期:2014-05-17 浏览次数:20696 次
String html = "<table><p style=\"text-align: center\"> <span><a href=\"/picture/0/1309131759193174664.JPG\">" +
"<img border=\"0\" alt=\"\" src=\"/picture/0/s1309131759193174664.JPG\" /></a></span></p></table>";
String s = html.replaceAll("(\\<\\w+\\s*)[^\\>]*", "$1");
System.out.println(s);