JavaScript » RegExp » test

Syntax:
object.test([str])

This method tests for a match of a regular expression in a string, returning true if successful, and false if not.