核心方法:String.replaceAll()replaceAll()是java.lang.String类的一个方法,它使用给定的正则表达式来替换字符串中所有匹配的子串,方法签名publicStringreplaceAll(St...