Quantified subpatterns
- Quantified subpatterns always result in an array of Match objects
regex statement_list { <statement>* }
- $/<statement> becomes an array of Match objects
- $/<statement>[0] is the Match object of the first statement
- $/<statement>[1] is the Match object of the second statement
- etc.
- The same is true if a subrule appears more than once in an alternation
regex number_list { <number> [ ',' <number> ]* }
- Note that the ? quantifier also produces an array (of 0 or 1 matches)