Simple RegexMatcher implementation