pub fn find_iter<'r, 't>(&'r self, text: &'t str) -> Matches<'r, 't> {
        Matches {
            re: &self,
            text,
            last_end: 0,
            last_match: None,
        }
    }
/// Returns an iterator for each successive non-overlapping match in `text`.
///
/// If you have capturing groups in your regex that you want to extract, use the [Regex::captures_iter()]
/// method.
///
/// # Example
///
/// Find all words followed by an exclamation point:
///
/// ```rust
/// # use fancy_regex::Regex;
///
/// let re = Regex::new(r"\w+(?=!)").unwrap();
/// let mut matches = re.find_iter("so fancy! even with! iterators!");
/// assert_eq!(matches.next().unwrap().unwrap().as_str(), "fancy");
/// assert_eq!(matches.next().unwrap().unwrap().as_str(), "with");
/// assert_eq!(matches.next().unwrap().unwrap().as_str(), "iterators");
/// assert!(matches.next().is_none());
/// ```
Returns an iterator for each successive non-overlapping match in `text`.
If you have capturing groups in your regex that you want to extract, use the [Regex::captures_iter()]
method.
Returns an iterator for each successive non - overlapping match in ` text ` . If you have capturing groups in your regex that you want to extract use the [ Regex :: captures_iter () ] method .
pub fn find_iter<'r, 't>(&'r self, text: &'t str) -> Matches<'r, 't> {
        Matches {
            re: &self,
            text,
            last_end: 0,
            last_match: None,
        }
    }
pub fn find_iter < ' r , ' t > ( & ' r self , text : & ' t str ) -> Matches < ' r , ' t > { Matches { re : & self , text , last_end : 0 , last_match : None , } }
Returns an iterator for each successive non-overlapping match in `text`.
Returns an iterator for each successive non - overlapping match in ` text ` .
&'r self
text
&'t str
&'r self
text
&'t str
example
Find all words followed by an exclamation point.


Find all words followed by an exclamation point .
use fancy_regex::regex;
let re = Regex::new(r"\w+(?=!)").unwrap();
let mut matches = re.find_iter("so fancy. even with.
let re = Regex :: new ( r " \ w + ( ? = ! ) " ) . unwrap () ; let mut matches = re . find_iter ( " so fancy . even with .