%= date = @cgi['date'].to_i num = @cgi['num'] s = '' File.open("db/log#{(@vid - 1) / 100}/#{@vid}_#{date}.html") do |ifile| reg = /(