Returns the same as find, but starts the search at the given offset. The significance of the starting point is that it takes the surrounding context into consideration. For example, the `\A` anchor can only match when `start == 0`.
(
&self,
text: &'t [u8],
start: usize,
)
| 593 | /// context into consideration. For example, the `\A` anchor can only |
| 594 | /// match when `start == 0`. |
| 595 | pub fn find_at<'t>( |
| 596 | &self, |
| 597 | text: &'t [u8], |
| 598 | start: usize, |
| 599 | ) -> Option<Match<'t>> { |
| 600 | self.0.searcher().find_at(text, start) |
| 601 | .map(|(s, e)| Match::new(text, s, e)) |
| 602 | } |
| 603 | |
| 604 | /// This is like `captures`, but uses |
| 605 | /// [`CaptureLocations`](struct.CaptureLocations.html) |