parse_book_source::utils

Function replace_all

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