Regular Expressions 101

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

Open Workspace
  • PCRE (Legacy)
  • Match
0

Regular Expression

/
^-?(\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