Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • 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:


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint