str_replace_all(string, pattern, replacement)
regex
for details.<1>1>,
<2>2> will be replaced with the contents of the respective matched
group (created by ()
) within the pattern.
string
, pattern
and replacement
.
Shorter arguments will be expanded to length of longest.gsub
which this function wraps,
str_replace_all
to replace a single match