aho-corasick icon indicating copy to clipboard operation
aho-corasick copied to clipboard

efficient string matching in Golang via the aho-corasick algorithm.

Results 3 aho-corasick issues
Sort by recently updated
recently updated
newest added

Hi, I found this while looking for a lower memory usage alternative to anknown/ahocorasick. I have a dataset of around 6 million strings. The total memory usage, as shown by...

This PR adds support for `findN` function which would improve the user experience when the matching has a limit. One example is [this snippet](https://github.com/corazawaf/coraza/blob/v3/dev/operators/pm_from_file.go#L55) where we match all but only...

https://github.com/petar-dambovaliev/aho-corasick/pull/13 Caused overlapping patterns to return multiple matches. This is fixed by only using the position new calculation for matches that are being cancelled due to MatchOnlyWholeWords. Edit: Just realized...