> > I used to know the secret spell, but forgot it. Does anyone know how > to do this with regular expression--basically need to force the index > to advance one position rather than to the end of a match before > starting the next attempt. > Thanks in advance, > Tim > > And another way. :) Again without a regular expression. str = "abcdefghijkl" (0..str.length-3).each {|x| p str[x..x+2]} Harry -- A Look into Japanese Ruby List in English http://www.kakueki.com/ruby/list.html