Skip to main content

from_regexes

Function from_regexes 

Source
pub fn from_regexes(regexes: &[&str]) -> Result<PatternSet, MatchError>
Expand description

Convenience: compile a set of regex patterns for matching.

Each regex gets an ID equal to its index in the slice.