An RegExp object (new in JavaScript 1.2) corresponds to a regular expression |
There are two syntaxes: regexp = new RegExp( "pattern" ); regexp = /pattern/; |
The latter "compiles" the pattern and is more efficient |
The RegExp object has three methods: compile(), exec(), and test() |