RegExp {X,Y} Quantifier

A global search for a substring that contains a sequence of three to four digits

Browser Support

/n{X,Y}/ is an ECMAScript1 (ES1) feature.

ES1 (JavaScript 1997) is fully supported in all browsers:

Chrome IE Edge Firefox Safari Opera
Yes Yes Yes Yes Yes Yes

Syntax

new RegExp("n{X,Y}")

or simply:

/n{X,Y}/

Syntax with modifiers

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

or simply:

/n{X,Y}/g