Regular Expressions 101

Community Patterns

match float point number either with thousand comma or without. no leading zero is allowed

0

Regular Expression
ECMAScript (JavaScript)

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

Description

no description available

Submitted by anonymous - 4 years ago