Regular Expressions 101

Community Patterns

decimal or not number

1

Regular Expression
PCRE (PHP <7.3)

/
^\d{1,3}(.?\d{3})*$
/

Description

acepts 1.000 and 1000

Submitted by jvs - 9 years ago