Dear friend,

You can use the following way also.

Code:
 
$var="This is apples, it costs me &xyz  and I bought them at &abc";
$var=~s!&([a-z]{3})!{$1}!g;
print "$var\n";