Skip to main content

regsub

Function regsub 

Source
pub fn regsub(update: &mut String, re: &str, repl: impl Replacer)
Expand description

Substitute all re in update with repl

Note that re is processed in “multiple lines mode” ((?m) is prepended.)

Convenience wrapper around regex::Regex::replace_all.