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 ASCII word bytes: ```rust # extern crate regex;
(&self, text: &'t [u8])
| 163 | /// # } |
| 164 | /// ``` |
| 165 | pub fn find<'t>(&self, text: &'t [u8]) -> Option<Match<'t>> { |
| 166 | self.find_at(text, 0) |
| 167 | } |
| 168 | |
| 169 | /// Returns an iterator for each successive non-overlapping match in |
| 170 | /// `text`, returning the start and end byte indices with respect to |
no test coverage detected