1 | An RegExp object (new in JavaScript 1.2) corresponds to a regular expression |
2 | There are two syntaxes: regexp1 = new RegExp( "pattern" ); regexp2 = /pattern/; |
3 | The latter "compiles" the pattern: regexp2 == regexp1.compile("pattern") |
4 | The RegExp object has two other methods: exec( str ) and test( str ) |