Skip to main content

regex_mask

Function regex_mask 

Source
fn regex_mask(s: &mut String, regex: &Regex, replacement: &str) -> bool
Expand description

Replaces the first regex match in s with replacement (which may use $1-style capture references). Returns true if a match was rewritten.