Implement RegexMatcher::Match.