public MatchResult toMatchResult() {ensureMatch();return new MatchResultImpl(input, matchOffsets);}
public java.util.regex.MatchResult toMatchResult(){ensureMatch();return new java.util.regex.MatchResultImpl(input, matchOffsets);}