JavaScript provides a RegExp object to complete operations and functions related to regular expressions. Each regular expression pattern corresponds to a RegExp instance. There are two ways to create instances of RegExp objects. 2009-05-05