Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

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

Description

validinvalid
0.001
0.991.
10.001.9
999.991,99
1999999.991,999,999.99
1.999.999,99
01.99
Submitted by anonymous - 2 years ago