Regular expression syntax
Negative lookahead
Requires absence of the following pattern at the current position.
Formal Syntax & Structure
javascript syntaxjavascript
(?!pattern)Working Example
Example Snippetjavascript
console.log(/a(?!b)/.test("ab"));