From: Glenn Parker Date: 2004-12-13T00:10:36+09:00 Subject: Re: Find every location of "th" in string. Robert Klemme wrote: >>> "the thin man thinks".scan( /th/ ) { puts $`.length } > 0 > 4 > 13 > => "the thin man thinks" scan doesn't really do that well. "banana".scan(/ana/) { puts $`.length } 1 => "banana" The second overlapping occurence of "ana" is missed. -- Glenn Parker | glenn.parker-AT-comcast.net |