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

Class Matches

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

An iterator over all non-overlapping matches for a particular string. The iterator yields a tuple of integers corresponding to the start and end of the match. The indices are byte offsets. The iterator stops when no more matches can be found. `'r` is the lifetime of the compiled regular expression and `'t` is the lifetime of the matched byte string.

Source from the content-addressed store, hash-verified

695/// `'r` is the lifetime of the compiled regular expression and `'t` is the
696/// lifetime of the matched byte string.
697pub struct Matches<'r, 't>(re_trait::Matches<'t, ExecNoSync<'r>>);
698
699impl<'r, 't> Iterator for Matches<'r, 't> {
700 type Item = Match<'t>;

Callers 1

find_iterMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected