1 | The default pattern matching in Perl is greedy or maximal size matching |
2 | There is now the ? option to designate the selection of match of minimum size |
3 | * is replaced by *? to specify minimal match 0 or more times |
4 | +? represents minimal match 1 time |
5 | ?? represents minimal match 0 or 1 times |
6 | {n}? minimal match exactly n times |
7 | {n,}? minimal match at least n times |
8 | {n,m}? minimal match At least n but not more than m times |