> I'm using hpricot for the first time on a project.  I need to get some
> url's from a web site, but I only want certain url's.
>
> I can grab all of the url's from the page without a problem, but how  
> can
> I enhance this to select http://www.goodsite.com vs.
> http://www.wrongsite.com?
>
> I'd like to test for the string "goodsite".


...assuming doc is an hpricot object...

doc.search("[EMAIL PROTECTED]'goodsite']") do |result|
   ....
end



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to