Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
^\d*(?:\.\d{1,3})?$
/

Description

Accepts only integer or Flating values upto 3 decimals. To accept n decimals change (1,n)

Submitted by Shanky - 9 years ago