Visit Mozilla.org

Core JavaScript 1.5 Reference:Global Objects:RegExp:source

From MDC


[edit] Summary

A read-only property that contains the text of the pattern, excluding the forward slashes.

Property of RegExp instances

Static

Implemented in: JavaScript 1.2, NES3.0

JavaScript 1.5: source is a property of a RegExp instance, not the RegExp object.

ECMA Version: ECMA-262, Edition 3

[edit] Description

source is a property of an individual regular expression object.

You cannot change this property directly.