prototype RegExp class propertyS2C Home
« Globals « RegExp « prototype
Description
Enables property assignment to objects of type RegExp.
- Like all class properties
prototypeshould be used on the class rather than an instance of the class.
Syntax
| Signature | Description |
|---|---|
RegExp.prototype | Enables property assignment to objects of type RegExp. |
Parameters
None.
Examples
The code below displays RegExp prototype.
alert('RegExp prototype is ' + RegExp.prototype);
Related Tutorials
JavaScript Intermediate Tutorials - Lesson 9 - Regular Expressions