replace

Function replace 

Source
pub fn replace(
    text: &str,
    regex: &str,
    replacement: String,
) -> Result<String, InvalidPatternSyntaxError>