Replace

Replaces part of a character string with a new character string.

Inputs

String
A String object.

Old string
A String object that contains the particular substring of characters you want to replace.

New string
A String object that contains the new character string you want to use as the replacement.

Output

Returns a String object that contains the updated character string.

Copyright IBM Corp. 2003, 2004