From: franco Date: 2007-11-28T01:44:59+09:00 Subject: Re: regex problem the first kleene star might need to be non greedy? in other words stop at the first href consumed, not the last. / wrote: > 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 - href="hello2.html">test2' > response.scan(/ puts line > end > > thanks for helping! > -- > Posted viahttp://www.ruby-forum.com/.