From: Alex DeCaria Date: 2010-04-14T02:01:09+09:00 Subject: Re: How to find multiple matches in a string Andrea Dallera wrote: > Hei, > > s = 'abcde_abcde_abcde' > m = s.scan(/b/) > p m # ['b','b','b'] > > HTH > > -- > Andrea Dallera > http://github.com/bolthar/freightrain > http://usingimho.wordpress.com Thanks Andrea. But is there a way to also find the locations (indexes) of the 'b' characters? --Alex -- Posted via http://www.ruby-forum.com/.