Grouping and Alternation
Learn about grouping and alternation in Perl.
We'll cover the following...
We'll cover the following...
Grouping
Previous examples have all applied quantifiers to simple atoms. We may apply them to any regex element:
If we expand the regex manually, the results may surprise us:
Sometimes, specificity helps pattern accuracy:
Alternation
Some ...