in reply to regexp trouble...

You might consider using a different toke to denote a variable name. I am personally a big fan of the percent sign. Other more uncommon characters like the caret (^) could also be used. =Indyz