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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy