RegExp.source (Property)

An instance property of a regular expression object.

Availability:

ECMAScript edition - 3
JavaScript - 1.2
JScript - 3.0
Internet Explorer - 4.0
Netscape - 4.0
Netscape Enterprise Server - 3.0
Opera - 5.0
Property/method value type:String primitive
JavaScript syntax:-myRegExp.source

This is a read-only property that returns the regular expression pattern text.

Property attributes:

ReadOnly.

Cross-references:

ECMA 262 edition 3 - section - 15.10.7.1