String s = "
String regex = "A.*?B";//.*是任意字符 ?是任意个数
String ss = s.replaceAll(regex,",")
java replace 替换(A)到(B)之间的字符
最新推荐文章于 2024-07-03 16:59:13 发布
String s = "
String regex = "A.*?B";//.*是任意字符 ?是任意个数
String ss = s.replaceAll(regex,",")