From: James Edward Gray II Date: 2006-03-08T02:46:54+09:00 Subject: Re: Is there link extractor or similar html processing libs for Ruby On Mar 7, 2006, at 11:38 AM, Marcin Miel��y��ski wrote: > Desireco wrote: >> Hi, >> in cool Perl there are a bunch of libraries that process html >> files and >> help you when you need to extract info. I remember hearing something >> for Ruby as well, if someone had experience with this, it would >> help me >> if he could point me in right direction. Basically I need to extract >> links and info from html pages. >> Thanks. Zeljko Dakic http://www.dakic.com > > You meant something like this ? (quite dirty but works) > > puts open("some.html").read.scan(//) No, it doesn't, trust me. ;) Toss a simple "\n" in there and you're sunk: Parsing HTML is hard and you don't want to use regular expressions to do it. James Edward Gray II