replace

Function replace 

Source
pub fn replace(
    pattern: &str,
    text: &str,
    replacement: &str,
) -> Result<String, String>
Expand description

Replace first match