From: Robert Klemme Date: 2008-03-05T02:59:54+09:00 Subject: Re: extract information from a large text On 04.03.2008 16:04, phoenix wrote: > I 'm new to ruby.I want to extract some useful information from a web > page to generate a RSS feeds.My first instinct is to provide a regular > expression like /sometext(.+?)sometext/, the problem is I can only get > the first match to this regex, how can I iterate over the multiple > matches? String#scan. > And further more, this kind of naive solution, is it too slow to > search over a very large text?Because the performance requirement is > high.Is there a better way to do this? Try it out. Also Hpricot like Kristian suggested. Cheers robert