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

Name

RegExp

Literal Syntax

/pattern/attributes

Constructor

new RegExp(pattern, attributes)

Regular expression patterns are expressed using a complex grammar that is summarized earlier in this book.

Instance Properties

global

A read-only boolean that specifies whether the RegExp has the g attribute and therefore performs global matching.

ignoreCase

A read-only boolean that specifies whether the RegExp has the i attribute and therefore performs case-insensitive matching.

lastIndex

For global RegExp objects, this read/write property specifies the character position immediately following the last match; this is the first character examined for the next match.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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