hi @all

I would like to scan a string of html-tags. I need it to take out all
links (a-tags) in the string, but I become only the last one. What is
wrong? See the code below...

response = 'test1 - <a
href="hello2.html">test2</a>'
response.scan(/<a.*href="(.*?)"/) do |line|
  puts line
end

thanks for helping!
-- 
Posted via http://www.ruby-forum.com/.