Skip to content
JS
JavaScript error

SyntaxError

The JavaScript exception "numbers out of order in {} quantifier" occurs when a quantifier in a regular expression uses the {n,m} syntax but m is less than n.

Reference entryJavaScriptFetched
SyntaxError: Invalid regular expression: /1{2,1}/: numbers out of order in {} quantifier (V8-based)
As listed by MDN Web Docs
SyntaxError: numbers out of order in {} quantifier. (Firefox)
As listed by MDN Web Docs
SyntaxError: Invalid regular expression: numbers out of order in {} quantifier (Safari)
As listed by MDN Web Docs
Category
SyntaxError
Severity
error
Runtime
both
or press Cmd/Ctrl + Enter. The text is only sent to this site to match it.
Source: MDN Web Docs. Data fetched 2026-09-25T01:48:37.274Z.