Do a global search for characters that are NOT inside the brackets [h]:
The marked text below shows where the expression gets a match:
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:
Tip: Use the [abc] expression to find any character between the brackets.
The [^abc] expression is supported in all major browsers.
Do a global search for characters that are NOT "i" and "s" in a string:
The marked text below shows where the expression gets a match:
Do a global search for the character-span NOT from lowercase "a" to lowercase "h" in a string:
The marked text below shows where the expression gets a match:
Do a global search for the character-span NOT from uppercase "A" to uppercase "E":
The marked text below shows where the expression gets a match:
Do a global search for the character-span NOT from uppercase "A" to lowercase "e":
The marked text below shows where the expression gets a match:
Do a global, case-insensitive search for the character-span that's NOT [a-s]:
The marked text below shows where the expression gets a match: