From: Paul Lutus Date: 2006-10-06T14:50:06+09:00 Subject: Re: Stripping unwanted html Wild Al wrote: / ... > In the while loop, how do you access the html tag. If I could access > the html tags, I could then decide if I wanted to keep the tag or not. Why not create your own method? This should give you some ideas: #!/usr/bin/ruby -w data = File.read("/path/page.html") data.scan(/<(\w+?)>/) { |tag| puts tag } This puts out the tag name extracted from each HTML tag in the page. -- Paul Lutus http://www.arachnoid.com