Quantifiers
- *, ?, + work as before
- so do *?, ??, and +?
- repetition specifier is now
\d ** 1..4 # 1 to 4 digits
- can also specify separator expression
[\d+] ** ',' # numbers separated by commas
Parrot | Perl 6 regexes | #6 |
\d ** 1..4 # 1 to 4 digits
[\d+] ** ',' # numbers separated by commas
Copyright © 2009 http://www.pmichaud.com/2009/pres/ |