Dear wise ones,
I am trying to retrieve a numeric value in a regex, and then use it as the quantifier to the next capture. Something like this (simplified):
/^(\d+?) (.{\1}) /
But it doesn't work. Nothing ever matches. It seems as if it does not like variables in a quantifier, perhaps?? And yet this doesn't seem like an outrageous thing to want to do; but I daresay I am missing something very obvious. Hopefully someone can tell me wherein my dullness lies!
Thanks in advance!
GRS