method Captures.get
Group i (0 = whole match).
Example:
fn main() io {
let c = Regex.compile("a(x)?(b)")!.captures("ab")!
print("{c.get(1)} {c.get(2)!.text} {c.get(9)}")
}Output
none b none
pub(api) fn get(i: usize) -> Match?Since. 1.0.0-beta
Parameters
| Name | Type |
|---|---|
i | usize |
Returns
Effects
none declared (pure unless the body says otherwise)
Defined in: std/core/text.oxl:1170