摘要: String str = "123456"; // 可以使用任意字符串分隔,如$1- String result1 = str.replaceAll("(.{2})(?=.{2})", "$1 "); String result2 = str.replaceAll("(.{2})(?=.{2})", 阅读全文
posted @ 2021-09-02 09:42 什么鬼- 阅读(424) 评论(0) 推荐(0) 编辑