Code-Samples/javascript/40.5_regexp_code.html test() method returns true or false based on match.