http://qs321.pair.com?node_id=812939


in reply to Re: Regex fun
in thread Regex fun

It's simpler than that: The quantifier cannot be variable.
This must mean something other than what it seems (to me) to mean:
$ perl -E 'my $quant = 2; "ab" =~ /.{$quant}/ and say "Matched"' Matched
shows that the ‘length’ of the quantifier can be given by a variable.