OxL Reference

method Captures.whole

The whole match.

Example:

oxl✓ checked in CI
fn main() io {
  let c = Regex.compile("a(b)")!.captures("xab")!
  print("{c.whole().text} {c.whole().start}")
}
Output
ab 1
pub(api) fn whole() -> Match

Since. 1.0.0-beta

Returns

Match

Effects

none declared (pure unless the body says otherwise)

Defined in: std/core/text.oxl:1157

See also