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
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 3. Regular Expressions > Item 28. Know the precedence of regular expres...

Item 28. Know the precedence of regular expression operators

The “expression” in “regular expression” is there because regular expressions are constructed and parsed using grammatical rules similar to those used for arithmetic expressions. Regular expressions serve a very different purpose, true; but understanding the similarities between them will help you write better regular expressions, and hence better Perl.

Regular expressions are made up of atoms and operators. Atoms are generally single-character matches. For example:


  

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