Lyndon Samson wrote:
> 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?

Use String#scan.

    robert