Previous PageNext Page

7.22 RegExp Object

The RegExp object stores information on regular expression pattern searches.
 

Properties

$1...$9
 
The nine most-recently used memorized portions found during pattern matching.
 
index
 
The location where the first successful match begins.
 
input
 
The string against which a search was performed.
 
lastIndex
 
Where the last successful match begins.
 
lastMatch
 
The last matched characters.
 
lastParen
 
The last parenthesized substring match, if any.
 
leftContext
 
The input string up to the most recent match.
 
multiline
 
Indicates whether searching continued across line breaks.
 
rightContext
 
The input string past the most recent match.
 

Syntax

RegExp.propertyname

Arguments

propertyname
One of the RegExp object properties.

Remarks

The RegExp object cannot be created directly, but is always available for use. Its properties have undefined as their value until a successful regular expression search has been completed.
 

Copyright © 2000 Chili!Soft

Previous PageTop Of PageNext Page