in reply to Re^2: Regular expressions: interpolate the variable in the value of the number of repetitions for the group
in thread Regular expressions: interpolate the variable in the value of the number of repetitions for the group

I do not know whether the solution proposed by rjt solves your problem, because you haven't decribed your problem and your data in sufficient details, but rjt's solution does not use any external code, but just Perl core functions and operators. And, BTW, the split function uses regular expressions.

  • Comment on Re^3: Regular expressions: interpolate the variable in the value of the number of repetitions for the group