in reply to Calculating variable {n} in regex match
What's the bigger problem you are trying to solve? Kinda sounds like using a claw hammer to remove a tyre when you should be using a tyre iron.