Easy Tutorial
❮ Met Console Groupend Met Loc Assign ❯

JavaScript RegExp ?! Quantifier


Definition and Usage

The ?!n quantifier matches any string that is not immediately followed by the specified string n.

Syntax


Browser Support

All major browsers support the ?! quantifier.


Example

Perform a global search for "is" not immediately followed by "all":

The following marked text shows where the expression matches: Is this all there is

❮ Met Console Groupend Met Loc Assign ❯