MatchResult

Interface MatchResult

All Known Implementing Classes:
Matcher
public interface MatchResult

The result of a match operation.

This interface contains query methods used to determine the results of a match against a regular expression. The match boundaries, groups and group boundaries can be seen but not modified through a MatchResult.

Since:
1.5
See Also:
Matcher

Methods

start

int start()

Returns the start index of the match.

Returns:
The index of the first character matched
Throws:
登录查看完整内容