Regular Expressions 101

Community Patterns

Community Library Entry

2

Regular Expression
Created·2014-12-14 09:10
Flavor·JavaScript

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

Description

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

Submitted by @jprajani