Tobias Reif wrote:


>> T>    # how to write these in one (gsub) line?
>> T>    string.gsub! /width="\d+"/, "width=\"#{w}\""
>> T>    string.gsub! /height="\d+"/, "width=\"#{h}\""
>>
>>       You really want to replace height with width ?
> 
> No. It should do the same as the above.


Oops, sorry; should read

   string.gsub! /width="\d+"/, "width=\"#{w}\""
   string.gsub! /height="\d+"/, "height=\"#{h}\""

Tobi


-- 
http://www.pinkjuice.com/