Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
^([1-9]\d*|0)\.(\d*[1-9]+)$
/
gm

Description

匹配任何小数,小数点后不保留0

Submitted by anonymous - 2 years ago