in reply to Format string and regex question

A third problem is that your my variables are not in the scope of your eval.