Grouping and Alternation

Learn about grouping and alternation in Perl.

Grouping

Previous examples have all applied quantifiers to simple atoms. We may apply them to any regex element:

Access this course and 1400+ top-rated courses and projects.