MCPcopy Create free account
hub / github.com/davidblewett/rure-python / name

Method name

regex/src/re_unicode.rs:930–932  ·  view source on GitHub ↗

Returns the match for the capture group named `name`. If `name` isn't a valid capture group or didn't match anything, then `None` is returned.

(&self, name: &str)

Source from the content-addressed store, hash-verified

928 /// Returns the match for the capture group named `name`. If `name` isn't a
929 /// valid capture group or didn't match anything, then `None` is returned.
930 pub fn name(&self, name: &str) -> Option<Match<'t>> {
931 self.named_groups.get(name).and_then(|&i| self.get(i))
932 }
933
934 /// An iterator that yields all capturing matches in the order in which
935 /// they appear in the regex. If a particular capture group didn't

Callers 1

indexMethod · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected