>  Have you tried with unpack ?
> 
>    def iso_unformat(t)
>       t.size == 8 ? t.unpack("a4a2a2") : t.unpack("a4a2a2a2a2a2")
>    end


Much better :) (though still slow in a way)

Thanks Guy.

stefan