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

Method name

regex/src/re_bytes.rs:911–913  ·  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

909 /// Returns the match for the capture group named `name`. If `name` isn't a
910 /// valid capture group or didn't match anything, then `None` is returned.
911 pub fn name(&self, name: &str) -> Option<Match<'t>> {
912 self.named_groups.get(name).and_then(|&i| self.get(i))
913 }
914
915 /// An iterator that yields all capturing matches in the order in which
916 /// they appear in the regex. If a particular capture group didn't

Callers 3

expand_strFunction · 0.45
expand_bytesFunction · 0.45
indexMethod · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected