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