Regular Expressions 101

Community Patterns

2

bye

ECMAScript (JavaScript)
no description available
Submitted by anonymous - 8 years ago
2

SSN

ECMAScript (JavaScript)
allow nine digits only
Submitted by anonymous - 8 years ago
2

get href

ECMAScript (JavaScript)
gets value of href
Submitted by me - 8 years ago

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 - 4 months ago
(Last modified 3 months ago)