From: vasudevram Date: 2007-01-26T23:50:07+09:00 Subject: Re: simple question about Ruby Regext On Jan 26, 7:33 pm, Wolfgang N�dasi-Donner wrote: The second one will invoke a block for each match. > > str = 'banana' > str.scan(/an/) do > puts "#$`<#$&>#$'" > end > > produces: > > bana > bana > > Wolfgang N�dasi-Donner Hey, that's both a neat Ruby feature and a neat way to explain it :-) Thanks Vasudev Ram http://www.dancingbison.com