Regular Expressions JavaScript Tutorial

The test() method tests for a pattern match in a string.
Returns Boolean value true or false.