pub fn replace_all<E>( re: &Regex, haystack: &str, replacement: impl Fn(&Captures<'_>) -> Result<String, E>, ) -> Result<String, E>
Custom implementation of Regex::replace_all for error handling.
Regex::replace_all