In this document, there is a lot of text that can be matched using regex. The benefit of using a regular expression is much more flexible — albeit complex — syntax for text pattern matching.
After you get the hang of regular expressions, also called regexes, they will become a powerful tool for pattern matching.