From: nikolaus.hammerschmidt@... (Nikolaus Hammerschmidt)
Date: 2002-12-02T02:23:48+09:00
Subject: 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!(//i, "")
cont.gsub!(//i, "")
cont.gsub!(//i, "")
cont.gsub!(//i, "| ")
It's quite effective but at the expected end of the corrected string,
it would be the first tag " |