http://qs1969.pair.com?node_id=473878


in reply to regex & variable substitution

s/&([^;]+);?/"&#".exists $lookup{$1} ? $lookup{$1} : $1.";"/e; should work the way you want it?!