ECMAScript RegExp object implemented in JavaScript.