• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

RegExp()

JavaScript 1.2+, Jscript 3.0+ Nav4+, NES3+, IE4+ Syntax

var variable = new RegExp(pattern,
							flags)

Description

The RegExp() object represents a regular expression that is used for pattern matching. The creation of the object takes pattern and flags parameters. The pattern is a valid regular expression. The flags are either or both g (global) and i (ignore case). Table 6.32 displays the properties and methods of the RegExp() object.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint