Regular expressions are one of the most valuable features of Perl. In Perl 6, regular expressions were redesigned to make them more regular and powerful. The term also changed—regular expressions are more often called simply regexes now. In this chapter, we will go through all the elements of the syntax of regexes.
The following topics will be covered in this chapter:
- Matching against regexes
- Literals
- Character classes
- Quantifiers
- Anchors
- Alternation
- Grouping
- Capturing and named captures
- Named regexes
- The Match object
- Assertions
- Adverbs
- Substitution