Function make_replacement

Source
fn make_replacement(s: &str) -> String
Expand description

Construct the regex used to match and replace \n expression. https://docs.rs/regex/latest/regex/struct.Captures.html#method.expand

\& -> ${0}
\1 -> ${1}
...
\9 -> ${9}