> Using a regexp is not the clearer way to do it, in my opinion. However, > you > can do: > > line.match(/^.{3}(.{6})/ > puts $1 > > The simpler way is: > > puts line[3..8] > > (I assume that you're counting characters starting from 0). > > Stefano Hi Stefano thanks for the speedy reply and solving it I did try the second method. I was just wondering if there's anyway to tackle it by using reg ex cheers tabing16 -- Posted via http://www.ruby-forum.com/.