JavaScript – RegExp exec() Method
The JavaScript RegExp exec() method tests for a match in a string. If a match is found, it returns a result array, otherwise it returns null.
The JavaScript RegExp exec() method tests for a match in a string. If a match is found, it returns a result array, otherwise it returns null.
The JavaScript RegExp test() method tests for a match in a string. If a match is found, it returns “true”, otherwise it returns “false”.
The JavaScript RegExp toString() method returns the string value of the regular expression.