Skip to content
JS
JavaScript error

SyntaxError

The JavaScript exception "negated character class with strings in regular expression" occurs when a v-mode character class is negated and may be able to match a string (more than one character).

Reference entryJavaScriptFetched
SyntaxError: Invalid regular expression: /[^\p{RGI_Emoji_Flag_Sequence}]/v: Negated character class may contain strings (V8-based)
As listed by MDN Web Docs
SyntaxError: negated character class with strings in regular expression (Firefox)
As listed by MDN Web Docs
SyntaxError: Invalid regular expression: negated class set may contain strings (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.