Community Patterns

Community Library Entry

0

Regular Expression
Created·2022-07-07 05:10
Updated·2022-07-07 05:18
Flavor·Python

r"
(^\-?1?[0-9]{,2}(\.\d{,2})?$)
"
gm
Open regex in editor

Description

the decimal, double point with range number from minus to plus range number, the example from -199.99 to 199.99

revision from example pattern 1:

^(?:\-?1[0][0-9](?:\.\d\d?)?|\-?[1]?[1-9]?[0-9](?:\.\d\d?)?)$

Submitted by eki.saputra