Actions

Translations

Translations:Using regular expressions/143/en

From LimeSurvey Manual

Revision as of 21:00, 19 July 2019 by FuzzyBot (talk | contribs) (Importing a new version from external source)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Number validation with thousand separator

Space as separator, no minus

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

Dot as separator, minus allowed

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