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.
In reply to Re^2: Matching in huge files
by dws
in thread Matching in huge files
by dws
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |