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

Method iter

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

918 ///
919 /// The first match always corresponds to the overall match of the regex.
920 pub fn iter<'c>(&'c self) -> SubCaptureMatches<'c, 't> {
921 SubCaptureMatches {
922 caps: self,
923 it: self.locs.iter(),
924 }
925 }
926
927 /// Expands all instances of `$name` in `replacement` to the corresponding
928 /// 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