fn regex_mask(s: &mut String, regex: &Regex, replacement: &str) -> bool
Replaces the first regex match in s with replacement (which may use $1-style capture references). Returns true if a match was rewritten.
s
replacement
$1
true