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

Method find

regex/src/re_unicode.rs:222–224  ·  view source on GitHub ↗

Returns the start and end byte range of the leftmost-first match in `text`. If no match exists, then `None` is returned. Note that this should only be used if you want to discover the position of the match. Testing the existence of a match is faster if you use `is_match`. # Example Find the start and end location of the first word with exactly 13 Unicode word characters: ```rust # extern crate

(&self, text: &'t str)

Source from the content-addressed store, hash-verified

220 /// # }
221 /// ```
222 pub fn find<'t>(&self, text: &'t str) -> Option<Match<'t>> {
223 self.find_at(text, 0)
224 }
225
226 /// Returns an iterator for each successive non-overlapping match in
227 /// `text`, returning the start and end byte indices with respect to

Callers

nothing calls this directly

Calls 1

find_atMethod · 0.45

Tested by

no test coverage detected