in reply to Can I use backreferences as quantifiers in a regex?

You cannot do it the way you try to. And that's because the quantifier is dealt with at "compile-time" (compile-time of the regex). It's the same as that you cannot do:
my $op = "+"; my $result = 3 $op 4;
If you want to do such a thing, you have to resort to an eval. Luckely, Perl regexes have their own evals, (??{ }) (see earlier in this thread).