I have a script that defines a variable as follows: var offendingChar = value.match(pattern) Code (markup): How do I change the definition of that variable to be opposite of what it is i.e. instead of matching, everything that doesn't match pattern? Is this possible? - Bina.