pub fn build_regex(needle: &str, flags: &str) -> Result<Regex, EvalError>