in reply to Re: Matching in huge files
in thread Matching in huge files

I am having problems when the window happens to split the string you are searching for in two, so can never be found - how can this be fixed?

The algorithm uses a sliding window, and matches strings that fall within that (sliding) window. If you're trying to match a string that doesn't fit in the window, make the window larger. Or if you think you've found a problem, post a test case that demonstrates the failure.