Regular Expressions 101

Community Patterns

Decimal up to 15.2 digits in French and English culture

2

Regular Expression
ECMAScript (JavaScript)

/
^-?\d{1,3}(?:(?:,\d{3}){0,4}(?:\.\d{1,2})|(?:(?:\s\d{3}){0,4}|(?:\d{0,12}))(?:[.,]\d{1,2})?)$
/
gm

Description

Loading markdown...
Submitted by BkQc - 3 months ago
(Last modified 3 months ago)