From http://www.w3schools.com (Copyright Refsnes Data)
JavaScript RegExp Object
The [^abc] expression is used to find any character not between the brackets.
The characters inside the brackets can be any characters or span of characters.
|
new RegExp("[^xyz]") or simply: /[^xyz]/ |
ExampleDo a global search for characters not inside the character-span [a-h]:
The marked text below shows where the expression gets a match:
Try it yourself » |
JavaScript RegExp Object
From http://www.w3schools.com (Copyright Refsnes Data)