I am looking for a solution to match a single string against a set of wildcard strings. For example
>>> match(\"ab\", [\"a*\", \"b*\", \"*\", \"c\",
Seems like Aho-Corasick algorithm would work. esmre seem to do what I'm looking for. I got this information from this question.