2009/4/24 Adam Akhtar <adamtemporary / gmail.com>: > ahh should have thought about that. here is a souce file > > Attachments: > http://www.ruby-forum.com/attachment/3615/mini-scrape.txt > I guess the following code will work for you. str = File.open('mini-scrape.txt' , 'rb').read str = str.split(/(20:)/).map{|x|x.gsub(/(.+?)(d\d+:)/){$1.unpack('H*').join+$2}}.join Regards, Park Heesob