62,633
社区成员
发帖
与我相关
我的任务
分享
static void replace(String regex,String input,String replace){
Pattern pa = Pattern.compile(regex);
Matcher match = pa.matcher(input);
System.out.println("replace all "+ match.replaceAll(replace));
}
main:replace("\\p{Punct}","你好aaaa,./09357*&^%#","");