From: Bulat Ziganshin Date: 2003-01-27T19:21:04+09:00 Subject: Re: Very nasty piece of code Hello Peter, Monday, January 27, 2003, 12:44:41 PM, you wrote: PH> # Converting from &#XX; to \'XX PH> Surely there is a better way to do this. sorry. below is tested code :) string=" " string.gsub! (/&#([0-9a-fA-F]{2});/) {"\\'" + $1} print string ps: see standart types/regular expressions/Backslash Sequences in the Substitution in pickaxe book -- Best regards, Bulat mailto:bulatz@integ.ru