62,615
社区成员
发帖
与我相关
我的任务
分享
public class Test5 {
public static void main(String[] args) {
String str = "<span id=\"abc\" style=\"...\"></span>";
str = str.replaceAll("(<(?i:span))\\s+[^>]+", "$1");
System.out.println(str);
}
}