Problem with gsub

Hi:

I’m using Ruby 1.6.7 MSWin32 on Win98 and I’m having a little problem
with gsub or could it be a known or unknown bug in Ruby?

I’m downloading a webpage and trying to simplify it for extracting
data with gsub.

Example website schema:

.... .... ...... ....
info A1 info B1
info Ax info Bx
Time is now: ...... Message Board ...

I’m using this following code to remove unuseful information from the
string with the webpage content:
cont.gsub!(/(\n|\r|\t| )/, “”)
cont.gsub!(/<TABLE.?>/i, “

”)
cont.gsub!(/<IMG.?>/i, “”)
cont.gsub!(/<TR.?>/i, “
”)
cont.gsub!(/<TD.?>/i, “
....
”)

It’s quite effective but at the expected end of the corrected string,
it would be the first tag “”, the rest of the original string
has survivied.

.... .... ...... ....
info A1 info B1
info Ax info Bx
Time is now: ...... Message Board ... Message Board ... href=...
info Ax info Bx
Time is now: ...... Message Board ...

Thanks in advance,
Nikolaus Hammerschmit