From: Christian Neukirchen Date: 2006-03-09T02:36:56+09:00 Subject: Re: Is there link extractor or similar html processing libs for Ruby "Bill Kelly" writes: > From: "James Edward Gray II" >> > >> > 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: >> > href="whatever"> >> Parsing HTML is hard and you don't want to use regular expressions >> to do it. > > Hi, not trying to be argumentative, just surprised. I thought parsing > HTML with regexps was pretty easy. Well, lexing HTML into tokens, I > mean. Lex, yes. Scrape in general, no. (And those who think that's BS, please have a look at REXML.) > Regards, > > Bill -- Christian Neukirchen http://chneukirchen.org