JavaScript RegExp {X,} Quantifier

Definition and usage

n{X,} Quantifier matches containing at least X Count n String of sequences.

X Must be numeric.

Example

Global search for sequences of at least three numbers:

let text = "100, 1000 or 10000?";
let pattern = /\d{3,}/g;

Try it yourself

Syntax

new RegExp("n{X,")

Or abbreviated as:

/n{X,}/

Syntax with modifiers

new RegExp("n{X, "g")

Or abbreviated as:

/n{X,}/g

Browser Support

/n{X,}/ Is ECMAScript1 (ES1) feature.

All browsers fully support ES1 (JavaScript 1997):

Chrome IE Edge Firefox Safari Opera
Support Support Support Support Support Support