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