RegExp.prototype (Property)

The prototype for the RegExp object that can be used to extend the interface for all RegExp objects.

Availability:

ECMAScript edition - 3
JavaScript - 1.2
JScript - 3.0
Internet Explorer - 4.0
Netscape - 4.0
Opera - 5.0
Property/method value type:RegExp object
JavaScript syntax:-RegExp.prototype
-myRegExp.constructor.prototype

You can use this to extend the interface to the object class and provide additional capabilities to your regular expressions.

See also:prototype property, RegExp.toString()

Cross-references:

ECMA 262 edition 3 - section - 15.10.5.1

ECMA 262 edition 3 - section - 15.10.6.1