From: Tobias Reif Date: 2002-08-12T21:22:19+09:00 Subject: Re: replacing values in some files: line endings etc 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/