in reply to Re: Re: Re: How do I search this binary file?
in thread How do I search this binary file?

I can see the benifit of that approach, in that the logic is simple and easy to write correctly.

It can be further optimized by only overlapping a possible partial match -- that is, if the delimiter is present towards the end, copy that through the end. Otherwise, don't bother. The single re can return a capture for the begin marker and optionally find the remainder.

  • Comment on Re: Re: Re: Re: How do I search this binary file?