This is a reference entry from MDN Web Docs. A full explanation with fixes has not been written yet.
SyntaxError: Invalid regular expression: /\p{x}/u: Invalid property name (V8-based)SyntaxError: Invalid regular expression: /[\p{x}]/u: Invalid property name in character class (V8-based)SyntaxError: invalid property name in regular expression (Firefox)
SyntaxError: invalid class property name in regular expression (Firefox)
SyntaxError: Invalid regular expression: invalid property expression (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.