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

Method iter

regex/src/re_unicode.rs:939–944  ·  view source on GitHub ↗

An iterator that yields all capturing matches in the order in which they appear in the regex. If a particular capture group didn't participate in the match, then `None` is yielded for that capture. The first match always corresponds to the overall match of the regex.

(&'c self)

Source from the content-addressed store, hash-verified

937 ///
938 /// The first match always corresponds to the overall match of the regex.
939 pub fn iter<'c>(&'c self) -> SubCaptureMatches<'c, 't> {
940 SubCaptureMatches {
941 caps: self,
942 it: self.locs.iter(),
943 }
944 }
945
946 /// Expands all instances of `$name` in `replacement` to the corresponding
947 /// capture group `name`, and writes them to the `dst` buffer given.

Callers 2

capture_namesMethod · 0.45
fmtMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected