Regular Expressions 101

Community Patterns

^0*[1-9][0-9]*(\.[0-9]+)?|0+\.[0-9]*[1-9][0-9]*$

1

Regular Expression
PCRE (PHP <7.3)

/
^\d{0,6}(\.\d{1,2})?$
/
gm

Description

no description available

Submitted by anonymous - 8 years ago