Regular Expressions 101

Community Patterns

1...34567...902

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
^-?\d+(,\d{3})*(\.\d{1,2})?$
/

Description

数字/货币金额(支持负数、千分位分隔符)

Submitted by anonymous - 5 years ago