In this chapter, we discussed about regexes in Perl 6. They share many common ideas with regular expressions in Perl 5 but also offer many fascinating new things. We examined the methods of constructing regexes and matching with text, learned how to extend the power of a regex engine by using character classes, written by you or built-in. We also looked at the way Perl 6 stores results in the Match object and how to make substitution and replacement in strings using regexes.
In the next chapter, we will meet an even more powerful tool that tremendously extends regexes, grammars.