replace_all

Function replace_all 

Source
pub fn replace_all<E>(
    re: &Regex,
    haystack: &str,
    replacement: impl Fn(&Captures<'_>) -> Result<String, E>,
) -> Result<String, E>
Expand description

Custom implementation of Regex::replace_all for error handling.