Javascript RegExp reference.
Javascript build-in RegExp object reference.
Create regexp:
Prototype Methods:
Syntax: | exec(string) |
Performs a regular expression match of string against the regular expression. Will update the lastIndex property in a global (g) search. | |
Return value: | Array object containing the results of the match, or null if the string did not match. |
string: | Used to search for an occurrence of the regular expression pattern. |
An example of using the exec() :
|
Prototype Properties:
Syntax: | RegExp.prototype.constructor |
This property of the RegExp.prototype holds the reference back to the RegExp object. | |
Important note: | This is the same as the constructor property of an instantiated object |
Constructor (RegExp) Properties:
Syntax: | RegExp.constructor |
The constructor property is a reference to the function that will be invoked to create a RegExp object. |
© 2010 by Finnesand Data.
All rights reserved.
This site aims to provide FREE programming training and technics.
Finnesand Data as site owner gives no warranty for the
correctness in the pages or source codes.
The risk of using this web-site pages or any program
codes from this website is entirely at the individual user.