java.util.regex
public interface MatchResult
Modifier and Type | Method and Description |
---|---|
int |
end()
Returns the index just after the last matched character.
|
int |
end(int group)
Returns the index just after the last matched character of the
given sub-match group.
|
String |
group()
Returns the substring of the input which was matched.
|
String |
group(int group)
Returns the substring of the input which was matched by the
given sub-match group.
|
int |
groupCount()
Returns the number of sub-match groups in the matching pattern.
|
int |
start()
Returns the index of the first character of the match.
|
int |
start(int group)
Returns the index of the first character of the given sub-match
group.
|
int end()
int end(int group)
group
- the sub-match groupString group(int group)
group
- the sub-match groupint groupCount()
int start()
int start(int group)
group
- the sub-match group