in reply to Re: Calculating variable {n} in regex match
in thread Calculating variable {n} in regex match

... if that were possible (it isn't). This would allow the counting match to be thrown in with a longer regex that is matching on other properties as well. This is probably possible through clever use of code evaluation (?{code}) and interpolation within the regex.

that's actually kind of hoping for...a clever use of eval - but i couldn't figure that out. anyway, sounds like what i want is not possible, at least in a straight-forward fashion.

  • Comment on Re^2: Calculating variable {n} in regex match