any-rule icon indicating copy to clipboard operation
any-rule copied to clipboard

我有更好的正则: 数字/货币金额 (只支持正数、不支持校验千分位分隔符)

Open xjq7 opened this issue 3 years ago • 0 comments

/(?:^([1-9]+|0)(?:\.\d{1,2})?$)/
/(?:^[1-9]([0-9]+)?(?:\.[0-9]{1,2})?$)|(?:^(?:0)$)|(?:^[0-9]\.[0-9](?:[0-9])?$)/

xjq7 avatar May 20 '22 11:05 xjq7