作者:mobiledu2502861593 | 来源:互联网 | 2023-09-14 06:08
^(\d{1,3}((((,|,)\d{3})*)|\d+))(\.\d+)?$分隔符适配半角、全角逗号匹配32,324.0000123,456.1234123,456123456
^(\d{1,3}((((,|,)\d{3})*)|\d+))(\.\d+)?$
分隔符适配半角、全角逗号
匹配
32,324.0000
123,456.1234
123,456
123456
123456.000
不匹配
1234,00.00
1244,123.00
1234,1234.00
REGEX链接