Regular Expressions 101

Community Patterns

There does not seem to be anything here

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

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

Description

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

Submitted by anonymous - 5 years ago