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

Method find_iter

regex/src/re_unicode.rs:244–246  ·  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 Unicode word characters: ```rust # extern crate regex; use regex::Regex; # fn main() { let text = "Retroactively relinquishing remunerations is reprehensible."; for mat in Regex::new(r"\b

(&'r self, text: &'t str)

Source from the content-addressed store, hash-verified

242 /// # }
243 /// ```
244 pub fn find_iter<'r, 't>(&'r self, text: &'t str) -> Matches<'r, 't> {
245 Matches(self.0.searcher_str().find_iter(text))
246 }
247
248 /// Returns the capture groups corresponding to the leftmost-first
249 /// match in `text`. Capture group `0` always corresponds to the entire

Callers 2

splitMethod · 0.45
replacenMethod · 0.45

Calls 2

searcher_strMethod · 0.80
MatchesClass · 0.70

Tested by

no test coverage detected