Property |
global |
Whether or not the "g" flag is used with the regular expression |
|
Property |
ignoreCase |
Whether or not the "i" flag is used with the regular expression. |
|
Property |
input |
The string against which a regular expression is matched |
|
Property |
lastIndex |
A read/write integer property that specifies the index at which to start the next match |
|
Property |
lastMatch |
The last matched characters |
|
Property |
lastParen |
The last parenthesized substring match |
|
Property |
leftContext |
The substring preceding the most recent match |
|
Property |
multiline |
Reflects whether or not to search in strings across multiple lines |
|
Property |
rightContext |
The substring following the most recent match |
|
Property |
source |
A read-only property that contains the text of the pattern, excluding the forward slashes and "g" or "i" flags |
|
Function |
regexp.compile(pattern[, flags]) |
Compiles a regular expression object during execution of a script |
|
Function |
regexp.exec([str]) |
Executes the search for a match in a specified string. Returns a result array |
|
Function |
regexp.test([str]) |
Executes the search for a match between a regular expression and a specified string. Returns true or false |
|