Regular Expressions 101

Community Patterns

1

js

ECMAScript (JavaScript)
no description available
Submitted by sd - 10 years ago
-1

Find image style

ECMAScript (JavaScript)
style img
Submitted by anonymous - 10 years ago
106

trim

ECMAScript (JavaScript)
trim string
Submitted by fp - 10 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 - 6 months ago
(Last modified 6 months ago)