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/.