Scanning a file

David Rasmussen david.rasmussen at gmx.net
Tue Nov 1 14:38:47 EST 2005


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



More information about the Python-list mailing list