Function Block STRTRC

The function block STRTRC replaces every occurrence of a character.

Note: This function is Binary-Safe. This means that UTF8 characters cannot be replaced directly. Instead, use the function block STRTR and add the characters individually.

Input STR

Defines the string to process.

Input FROM

Defines all characters as a string that are replaced by the characters below.

If an empty string is present at the input, replacement is ignored.

Input TO

Defines the new characters as a string that are inserted for the characters above.

Output

Returns a string in which all FROM characters have been replaced with the corresponding TO characters.

If the inputs FROM and TO have different lengths, the excess characters in the longer parameter are ignored.