s/&([^;]+);?/"&#".($lookup{$1} ? $lookup{$1} : $1).";"/e; [download]
In reply to Re: regex & variable substitution by holli in thread regex & variable substitution by kiz