String s = "\"The 3,234 3,5, 3242,334,532.23, 2342,34234,3234,32,23.23 = 1,321.32====23,123,3=== number is 33,223,234.35, Another number is 3,240.2, And another one is 3.2\""; String regex = "((?<!\\d)(\\d)|(?<!\\d)(\\d{2})|(?<!\\d)(\\d{3})),(?=(\\d{3})+(?!\\d))"; Pattern pattern = Pattern.compile(regex); log.info("{}", s); log.info("{}", s.replaceAll(regex, "$1"));
日历
2024年十二月 一 二 三 四 五 六 日 « 10月 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 -
近期文章
分类目录
friend
-