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

Chapter 20. The RegExp Object: Working w... > Creating Regular Expressions

Creating Regular Expressions

In JavaScript, regular expressions are expressions enclosed between forward slashes (/), such as the ones we’ve already seen (for instance, /\b[^A-Z]+\b/); they also can be followed by modifier characters outside the last slash (for instance, /\b[^A-Z]+\b/g, which uses the g modifier to make a search global). In general, such regular expressions can be made up of these parts:

  • Characters

  • Character classes

  • Alternative match patterns

  • Quantifiers

  • Assertions

  • Backreferences

  • Regular expression extensions


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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