JavaScript: The Definitive Guide

24.158. RegExp.source: the text of the regular expression

ECMAScript v3

24.158.1. Synopsis

regexp.source

24.158.2. Description

source is a read-only string property of RegExp objects. It contains the text of the RegExp pattern. This text does not include the delimiting slashes used in regular-expression literals, and it does not include the "g", "i", and "m" attributes.

Категории