|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface MatchResult
This interface represents the result of a regular expression match. It can be used to query the contents of the match, but not to modify them.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
int end()
int end(int group)
group - the sub-match groupString group()
String group(int group)
group - the sub-match groupint groupCount()
int start()
int start(int group)
group - the sub-match group
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||