If how is a string beginning with `g' or `G', then replace each match of regex in target with subst. Otherwise, replace the how'th occurrence. If target is not supplied, use $0. The return value is the changed string; the original target is not modified. Within subst, `
', where n is a digit from one to nine, can be used to indicate the text that matched the n'th parenthesized subexpression.