Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
ECMAScript (JavaScript)

/
\d+(?:\.?\d+)?
/

Description

Decimal with a dot, if has a dot it needs a number following it

Submitted by anonymous - 3 years ago