feature request: an option to match only whole words
kmanley opened this issue · 1 comments
kmanley commented
currently if the machine's trie contains "abc" it will match 3 times in "abcde abc zabc"
I am proposing an flag to match whole words only, in which case it would match once
anknown commented
I provide another method called "ExactSearch" to support this feature, you can find usage in ahocorasick_test.go :D