in reply to Variables in Regular Expressions?
I guess the real question is are you trying to trade a for d, b for e, and c for f, or are you trying to replace abc with def...
if it is the first case, you problem was simply the ~= should be =~, if the latter, than you want the s/// solution proposed above
- Ant