Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Created·2022-01-31 20:33
Flavor·JavaScript

/
\d+(?:\.?\d+)?
/
Open regex in editor

Description

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

Submitted by anonymous