Regular Expressions 101

Community Patterns

Decimal (with dot)

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 - 2 years ago