pub fn replace_all( re: &Regex, haystack: &str, replacement: impl FnMut(&Captures<'_>) -> Result<String>, ) -> Result<String>