Return a copy of expr with replaced subexpressions at points that match a regular expression pattern.