The Regular Expression Object [3|I]
The Regular Expression (RegExp) object contains the pattern of a Regular Expression.
Parameters
regexp— Specifies the name of the Regular Expression object. New in JavaScript 1.2 and later.
pattern— Specifies the text of the Regular Expression. New in JavaScript 1.2 and later.
Flags
g— Specifies that during the Regular Expression search, the match (and search) should be global.
gi— Specifies that during the Regular Expression search, case is ignored and during the Regular Expression search, the match (and search) should be global.
i— Specifies that during the Regular Expression search, case is ignored (that is, the search is not case sensitive).
Properties
global [true,false]— Sets the g flag value in code, such ...
Get Platinum Edition Using XHTML™, XML, and Java™ 2 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.