From: Lee Jarvis Date: 2008-01-19T00:11:21+09:00 Subject: Re: go to specific char in a file Rudy Rusli wrote: > I was just wondering if there's anyway to tackle it by using reg ex Something like.. >> File.foreach('file') {|line| puts line.match(/^.{3}(.{5})/)[1] } 12AX3 123HG ? Regards, Lee -- Posted via http://www.ruby-forum.com/.