RegExp {n,} Quantifier
A global search for a sequence of at least three digits:
let text = "100, 1000 or 10000?";
let pattern = /\d{3,}/g;
let result = text.match(pattern);
Try it Yourself »
Description
The x{n,} quantifier matches n or more occurences of x.
The n must be a number.
Syntax
new RegExp("x{n,}")
or simply:
/x{n,}/
Syntax with modifiers
new RegExp("x{n,}", "g")
or simply:
/x{n,}/g
Browser Support
/{n,}/
is an ECMAScript1 (JavaScript 1997) feature.
It is supported in all browsers:
Chrome | Edge | Firefox | Safari | Opera | IE |
Yes | Yes | Yes | Yes | Yes | Yes |