From: Esmail Bonakdarian Date: 2006-09-30T11:40:10+09:00 Subject: Re: newbie: how to find & extract a string from a file x1 wrote: > I'm sure someone will have a better way of doing this.. but.. > Assuming it has > > ## > imgs = [] > IO.readlines("c:/somefile.html").each {|line| imgs << line.split(" src=\"")[1].to_s.split("\"")[0] if line.match(" ## Hi, thanks .. this will get me started. I feel like I could do this using various unix tools (grep/awk), but I'm trying to learn Ruby ... Esmail