Regular Expressions 101

Community Patterns

number with or without thousands separator(.) and decimal part(,)

0

Regular Expression
PCRE (PHP <7.3)

/
^-?(\d+|\d{1,3}(\.\d{3})+)(\,(\s)?\d*)?$
/
g

Description

number with or without thousands separator(.) and decimal part(,) ES: 100000; 1.646; 13323,33; 3.444.434,44

Submitted by Basten - 10 years ago