From: Robert Date: 2003-04-30T07:12:09+09:00 Subject: Re: Regexp keyWords = {} completeHtmlPage.scan( / schrieb im Newsbeitrag news:pan.2003.04.29.14.41.01.599662@ac-rouen.fr... > Hi, > > > I'd like to get all the keywords in a html page defined like this one: > > In this example, kewords are "wallpaper, sex, kostenlose, high quality, desktop" > > The pb is when there are more than one > in the page. > How can i get all ? > > With Perl, something like > while (/regexp/g) { > #do smt with $1 > } > works. > > How can I do that with Ruby ? > > Regards.