str_replace(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
should both be single strings, i.e. a character vectors of length
one.gsub
which this function wraps