Regular expression syntax
Negated character class
Matches a character not included in the class; the initial caret indicates negation.
Formal Syntax & Structure
javascript syntaxjavascript
[^abc]Working Example
Example Snippetjavascript
console.log(/[^ab]/.test("c"));