What I'm trying to do is parse some data and replace any data that is a variable with the proper value, however in the data exists monetary amount which I would like skipped by the regexp, so in that case I formatted the data such that anything non-variable and including a $ would be \$. So I have my data that contains $variables and \$1,000 amounts like so, and I want my regexp to skip any amounts, however it is still trying to evaluate the $1... Here is the regexp that's causing me the trouble:
s/\$(\w+)/${$1}/g How should I express that so that it will skip amounts (prceeded by a \) and correctly replace variables with the proper value?