[Tutor] how to split a stream of chars
emilia12 at mail.bg
emilia12 at mail.bg
Mon Apr 9 17:57:26 CEST 2007
hi list,
i have a long stream of data, represented in hexadecimal
form. I need to split it in bytes (by 2 chars each). eg
'00010203040506'... -> ['00', '01, '02' ...].
So my question is: is there an inverse function of zip, or
an easy way to split this long string in pairs (without
indexing in cycle, nor regexpr.)?
Emily
-----------------------------
SCENA - Единственото БЕЗПЛАТНО списание за мобилни комуникации и технологии.
http://www.bgscena.com/
More information about the Tutor
mailing list