//replaceAll(String regex,String replacement);
String st = “wo1144ai22212heima”;
String a = “\d”;
String s = st.replaceAll(a, “”);
System.out.println(s);
正则替换;
最新推荐文章于 2024-07-24 22:59:36 发布
//replaceAll(String regex,String replacement);
String st = “wo1144ai22212heima”;
String a = “\d”;
String s = st.replaceAll(a, “”);
System.out.println(s);