Regular Expression Object
-
Regular Expression Object Overview
We have already seen the two ways of instantiating a Regular Expression object:var re = /pattern/{flags}andvar re = new RegExp("pattern",{"flags"})Reg...
-
Regular Expression Methods
rgExp.exec(str)rgExp.exec(str)exec executes a search on a string str using a Regular Expression pattern defined in an instance of a Regular Expression...
-
String Object Methods that Use Regular Expression Objects
There are three methods of the String Object that uses Regular Expressions as input. stringObj.match(rgExp) stringObj.match(rgExp)match ex...