public native end(index as Int = 0) as Int
Returns the exclusive end offset of a captured group in the input.
| Parameter | Description |
|---|---|
index | Zero-based capture-group index. Group 0 is the full match. |
The absolute end offset, or -1 for an unmatched optional group.
matcher = RegEx(r"\d+").matcher("value=42")
if matcher.find():
print(matcher.end()) # 8