Regular Expressions 101

Library entries

数字/货币金额 (只支持正数、不支持校验千分位分隔符)

Vote

0

Regular Expression
javascript

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

Description

Loading markdown...
Submitted by anonymous - 2 years ago