HTML and CSS Reference
In-Depth Information
Table 17.3 Class Properties of the RegExp Object
Property
What It Describes
input
Represents the input string being matched.
lastMatch
Represents the last matched characters.
lastParen
Represents the last parenthesized substring pattern match.
leftContext
Represents the substring preceding the most recent pattern match.
RegExp.$*
Boolean value that specifies whether strings should be searched over
multiple lines; same as the multiline property.
RegExp.$&
Represents the last matched characters.
RegExp.$_
Represents the string input that is being matched.
RegExp.$ '
Represents the substring preceding the most recent pattern match (see
the leftContext property).
RegExp.$ '
Represents the substring following the most recent pattern match (see
the rightContext property).
RegExp.$+
Represents the last parenthesized substring pattern match (see the
lastParen property).
RegExp.$1,$2,$3...
Used to capture substrings of matches.
rightContext
Represents the substring following the most recent pattern match.
Table 17.4 Instance Properties of the RegExp Object
Property
What It Describes
global
Boolean to specify if the g option was used to check the expression
against all possible matches in the string.
ignoreCase
Boolean to specify if the i option was used to ignore case during a string
search.
lastIndex
If the g option was used, specifies the character position immediately
following the last match found by exec() or test().
multiline
Boolean to test if the m option was used to search across multiple lines.
source
The text of the regular expression.
 
Search WWH ::




Custom Search