Philip Hallstrom wrote:

> ...assuming doc is an hpricot object...
> 
> doc.search("[EMAIL PROTECTED]'goodsite']") do |result|
>    ....
> end



Yes, that works to only grab the links that I need.  Previously though, 
I had used

(doc/:a).each do |link|

this only gave me the html string.

Can I do this the same way instead of returning

<a href= "http://...

I only want http:// so that I can use these links.

THANKS!
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
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