Repetition
start: die /^\Z/
die: number(?) 'd' number
number: /\d+/
- Items can have repetition specifiers
- item(?) Match one or zero times.
- item(s) Match one or more times.
- item(s?) Match zero or more times.
- item(N) Match exactly N time.
- item(N..M) Match at least N times, at most M times.
- item(..M) Match at least once, at most M times.
- item(N..) Match at least N times.
- Return value is a array ref, with the matched items as elements.
[Prev]
[Next]
[Index]