JavaScript Regular Expressions

In JavaScript, regular expressions are evaluated as characters within a pair of forward slashes. Inside the forward slashes a pattern is included. The most basic of these is a string literal. The code /joey/ would match any string that has the word 'joey' in it.
The simplest way to evaluate whether a match occurs in [...]