JavaScript RegExp {X,} Quantifier
- Previous Page {X,Y}
- Next Page $
- Go Back to the Previous Level JavaScript RegExp Reference Manual
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;
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 |
- Previous Page {X,Y}
- Next Page $
- Go Back to the Previous Level JavaScript RegExp Reference Manual