Returns an iterator over all the non-overlapping capture groups matched in `text`. This is operationally the same as `find_iter`, except it yields information about capturing group matches. # Example We can use this to find all movie titles and their release years in some text, where the movie is formatted like "'Title' (xxxx)": ```rust # extern crate regex; use std::str; use regex::bytes::Rege
(
&'r self,
text: &'t [u8],
)
| 287 | /// # } |
| 288 | /// ``` |
| 289 | pub fn captures_iter<'r, 't>( |
| 290 | &'r self, |
| 291 | text: &'t [u8], |
| 292 | ) -> CaptureMatches<'r, 't> { |
| 293 | CaptureMatches(self.0.searcher().captures_iter(text)) |
| 294 | } |
| 295 | |
| 296 | /// Returns an iterator of substrings of `text` delimited by a match of the |
| 297 | /// regular expression. Namely, each element of the iterator corresponds to |