note
dws
<p><i>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?</i></p>
<p>
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.
</p>
128925
413259