Regular Expressions 101

Community Patterns

1...34567...901

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