From: Anthony Walsh Date: 2006-10-26T00:14:46+09:00 Subject: Re: parsing HTML code with regex > Also, try scanning for matches, like this: > > #!/usr/bin/ruby -w > > path="path-to-HTML-page" > > data = File.read(path) > > array = data.scan(%r{}) > > puts array Thanks, this worked. -- Posted via http://www.ruby-forum.com/.