Implemented capture matcher.