pub fn grep<'t>(text: &'t str, patterns: &[&str]) -> Result<Vec<&'t str>>
Expand description
Finds all lines in the given text
that matches all the patterns
.
We suppose that all patterns are legal regular expressions. An error message will be returned if this is not the case.
§Errors
Returns an Error::OtherError
when any of the
regex patterns is ill-formed.