String Replace

Replace a substring with a new substring within a string.

Leave the “Number of Replacements” field blank to replace all instances of the old substring.

Inputs

String

The original string.

Old Substring

The substring to search for that will be replaced.

New Substring

The new substring to replace the old substring with.

Number of Replacements

The maximum number of replacements to make. Leave blank to replace all instances.

Outputs

String