Steven D'Aprano wrote: > > However, there may be a simpler solution *fingers crossed* -- you are > searching for a sub-string "\x00\x00\x01\x00", which is hex 0x100. > Surely you don't want any old substring of "\x00\x00\x01\x00", but only > the ones which align on word boundaries? >
Nope, sorry. On the files I have tried this on, the pattern could occur on any byte boundary. /David -- http://mail.python.org/mailman/listinfo/python-list