RegExp Object Methods

compile()

Deprecated in version 1.5. Compiles a regular expression


exec()

Tests for a match in a string. Returns the first match


test()

Tests for a match in a string. Returns true or false


toString()

Returns the string value of the regular expression