Lyndon Samson
5/9/2005 11:43:00 AM
I have a HTML document containing many table cells of which I wish to
extract the contents.
r = Regexp.new("\<TD.*?\>(.*?)\<\TD\>", Regexp::MULTILINE)
m = r.match(table)
The above only matches the first cell, I'd like to continue the match
finding each subsequent cell. The not-very-nice way to do this is to
take the char offset of the match, create a new string from that point
and feed it back into match.
Whats the better way?
--
Into RFID? www.rfidnewsupdate.com Simple, fast, news.