• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

1.7. Regular Expressions

JavaScript 1.2 supports regular expressions, using the same syntax as Perl 4. A regular expression is specified literally as a sequence of characters within forward slashes (/), or as a JavaScript string passed to the RegExp( ) constructor. The optional g (global search) and i (case-insensitive search) modifiers may follow the second / character, or may be passed to RegExp( ).

The following table summarizes regular expression syntax:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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