Regular Expressions 101

Library entries

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

Vote

0

Regular Expression
javascript

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

Description

Loading markdown...
Submitted by anonymous - 2 years ago