It's simpler than that: The quantifier cannot be variable.This must mean something other than what it seems (to me) to mean:
shows that the ‘length’ of the quantifier can be given by a variable.$ perl -E 'my $quant = 2; "ab" =~ /.{$quant}/ and say "Matched"' Matched
In reply to Re^2: Regex fun
by JadeNB
in thread Regex fun
by Hena
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |