Skip to content

alexandrnikitin/AhoCorasick.Net

Repository files navigation

AhoCorasick.net

Efficient and very fast implementation of Aho-Corasick string matching algorithm on .NET
TBA

Install

It's available via nuget package
PM> Install-Package AhoCorasick.Net

Or nuget package with sources only
PM> Install-Package AhoCorasick.Net.Source

Example Usage

var botKeywords = new AhoCorasickTree(new[] { "abot", "apachebench", "googlebot", "libwww-perl", "etc" });
var userAgent = "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.99 Safari/537.36";
var isBot = botKeywords.Contains(userAgent);

About

Implementation of Aho-Corasick string matching algorithm for .NET

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published