ahocorasick

Java library for efficient string matching against a large set of keywords