public class Capture extends Object
One group can be captured multiple times, e.g. if you apply the regex (a)+ to
the input string aaaa, then there are 4 Capture objects associated
with group 1.
Matcher.captureTree()| Modifier and Type | Method and Description |
|---|---|
int |
getEnd()
Returns the end index of the range of the input sequence that was
captured
|
int |
getStart()
Returns the start index of the range of the input sequence that was
captured
|
String |
getValue()
Returns the substring of the input sequence that was captured
|
public int getStart()
public int getEnd()
public String getValue()
Copyright © 2019. All rights reserved.