Regular Expressions 101

Library entries

match float point number either with thousand comma or without.

Vote

0

Regular Expression
javascript

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

Description

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