From: Michael Fellinger Date: 2010-10-31T15:24:52+09:00 Subject: Re: "<-----/strings/----->" my ruby http client, link search. On Sun, Oct 31, 2010 at 9:08 AM, Bigmac Turdsplash wrote: > im not sure how to ask this question... > Imagen the body of a webpage as the string im searching threw... > > [body] > style="font-size:15 > style="font-size:15 > style="font-size:15 > style="font-size:15[/body] > > i need to find this /files/ then on the left side and right side there > are quotes "<------/files/------>" > > i need all the data in between each quote, this will be a download link > my script will need to find... > > im not sure how to do this... please help if you can require 'nokogiri' text = < HTML >> Nokogiri::HTML(text).xpath('//a[contains(@href,"/files/")]').map{|a| a[:href] } => ["htxp://www.xxxxxx/files/xxxxxxx/xxxxxxxx"] -- Michael Fellinger CTO, The Rubyists, LLC