The following table displays a summary of the regular expression methods. Detailed descriptions of each method follow the table.
compile
Compiles a regular expression object.
exec
Executes a search for a match in its string parameter.
test
Tests for a match in its string parameter.