in reply to Re^7: about style: use possessive or atomic?
in thread about style: use possessive or atomic?
From perl5200delta#Diagnostics:
New Warnings
...
- Useless use of greediness modifier
This fixes [Perl #42957].
That links to perldiag which has:
- Useless use of greediness modifier '%c' in regex; marked by <-- HERE in m/%s/
(W regexp) You specified something like these:
The "?" and "+" don't have any effect, as they modify whether to match more or fewer when there is a choice, and by specifying to match exactly a given numer (sic), there is no room left for a choice.1. qr/a{3}?/ 2. qr/b{1,1}+/
I’m guessing that’s why the qualification “(redundant)” has been added to the entries for {n}? and {n}+ in perlre#Regular-Expressions?
| Athanasius <°(((>< contra mundum | Iustus alius egestas vitae, eros Piratica, |
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^9: about style: use possessive or atomic?
by stevieb (Canon) on Aug 16, 2015 at 15:20 UTC |