On 25 May 2016 at 01:06, Zefram <zefram@fysh.org> wrote: > demerphq wrote: >>$ perl -wle'qr/\A{10}/' >> >>Quantifier unexpected on zero-length expression in regex m/\A{10}/ at -e line 1. > > That's just a warning. It does actually parse as I stated. Yes, no argument there. My point was more that IMO it would not be particularly unreasonable to forbid certain quantifiers on an assertion. IOW, I do consider use of a {min,max} quantifier on an assertion to be exceptional, and I would not mind if we forbid it when min!=0 or max!=1. Yves -- perl -Mre=debug -e "/just|another|perl|hacker/"Thread Previous | Thread Next