fn build_regex( subpatterns: &[Subpattern], case_insensitive: bool, ) -> Result<Regex, EvalError>
Builds a regular expression that matches some parsed Subpatterns.