Function string_patterns::build_regex
source · pub fn build_regex(
pattern: &str,
case_insensitive: bool
) -> Result<Regex, Error>
Expand description
Build a regular expression with an optional case-insenistive non-capturing group If the source pattern starts with a non-capturing group, this will be ignored irrespective of the case_insenistive flag