Regular Expressions 101

Community Patterns

验证金额 "-999999999.99 ~ 999999999.99" ,小数点保留2位

1

Regular Expression
PCRE2 (PHP >=7.3)

/
^-?\d{0,9}(\.\d{1,2})?$
/
gm

Description

Loading markdown...
Submitted by cp.l - 3 years ago