After all the talk and preparation, it’s time to look at some actual regexes.
This is a preview of subscription content, access via your institution.
Technically, anchors are also zero-width assertions, and they can look both ahead and behind.
If this doesn’t make sense to you, don’t worry; it will be clearer after the discussion of match objects and Regex Mechanics in later chapters.
There should be no need for that. Still, it’s good to have that power.
Rights and permissions
© 2017 Moritz Lenz
About this chapter
Cite this chapter
Lenz, M. (2017). The Building Blocks of Regexes. In: Parsing with Perl 6 Regexes and Grammars. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-3228-6_3
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-3227-9
Online ISBN: 978-1-4842-3228-6
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books