a string, the string obtained from s by replacing its substrings matching p by copies of r.
Description
If a backslash followed by a digit occurs in r, then in the result they are replaced by the string matching the corresponding parenthesized subexpression of p.