From http://www.w3schools.com (Copyright Refsnes Data)
JavaSript RegExp Object
The ?!n quantifier matches any string that is not followed by a specific string n.
|
new RegExp("regexp(?!n)") or /regexp(?!n)/ |
ExampleDo a global, case insensitive search for "is" not followed by " all":
The marked text below shows where the expression gets a match:
Try it yourself » |
JavaSript RegExp Object
From http://www.w3schools.com (Copyright Refsnes Data)