Generify MatchHandler's .match()