Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
ECMAScript (JavaScript)

/
^[+-]?([\dβ†Šβ†‹]{1,3}(,([\dβ†Šβ†‹]{3})?)+(\.[\dβ†Šβ†‹]+)?|[\dβ†Šβ†‹]*\.?[\dβ†Šβ†‹]+)$
/
gm

Description

Matches any dozenal number. Supports positive/negative sign, thousands separators, and implicit zeros.

Submitted by XeNoX (D:T0M11#1774, G/XNX11, i@xenox_officiel, T@XeNoXoff) - 2 years ago