This is a reference entry from MDN Web Docs. A full explanation with fixes has not been written yet.
SyntaxError: Invalid regular expression: /{/u: Lone quantifier brackets (V8-based)SyntaxError: raw bracket is not allowed in regular expression with unicode flag (Firefox)
SyntaxError: Invalid regular expression: incomplete {} quantifier for Unicode pattern (Safari)SyntaxError: Invalid regular expression: unmatched ] or } bracket for Unicode pattern (Safari)
- 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.