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

Method find_iter

regex/src/re_bytes.rs:187–189  ·  view source on GitHub ↗

Returns an iterator for each successive non-overlapping match in `text`, returning the start and end byte indices with respect to `text`. # Example Find the start and end location of every word with exactly 13 ASCII word bytes: ```rust # extern crate regex; use regex::bytes::Regex; # fn main() { let text = b"Retroactively relinquishing remunerations is reprehensible."; for mat in Regex::new(r"\

(&'r self, text: &'t [u8])

Source from the content-addressed store, hash-verified

185 /// # }
186 /// ```
187 pub fn find_iter<'r, 't>(&'r self, text: &'t [u8]) -> Matches<'r, 't> {
188 Matches(self.0.searcher().find_iter(text))
189 }
190
191 /// Returns the capture groups corresponding to the leftmost-first
192 /// match in `text`. Capture group `0` always corresponds to the entire

Callers 8

into_searcherMethod · 0.45
splitMethod · 0.45
replacenMethod · 0.45
replace_allFunction · 0.45
mainFunction · 0.45
replace_allFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls 2

searcherMethod · 0.80
MatchesClass · 0.70

Tested by

no test coverage detected