Regular Expressions 101

Community Patterns

Community Library Entry

2

Regular Expression
ECMAScript (JavaScript)

/
^\d+(?:[.]\d{1,2}|$)$
/

Description

Checks that value is float format and has two digits at max

Submitted by @jprajani - 10 years ago