StringReplace

The StringReplace function replaces a string in the input stream.

Input

Number of Connections: 1
InputData TypeDescription
Input1StringThe string to be modified.

Output

OutputData TypeDescription
Output1StringThe modified string.

Property

NameProperty TypeDescription
Modechoice Specifies whether the substitution table used is read from a file or if the InlineTable is used.


File - The substitution table used is read from a file.
Inline - The InlineTable substitution table is used.
FilePathString

If Mode=File, this property specifies the file's path.

If the file path is not absolute, the path is relative to the project owner's home directory.

FileEncodingchoice

If Mode=File, this property specifies the table file's character encoding.



(AutoDetect) - the component will attempt to determine the file's encoding type automatically
utf-8 - unicode utf-8
shift_jis - Shift JIS
euc-jp - EUC-JP
iso-2022-jp - ISO-2022-JP
utf-16 - unicode utf-16
InlineTableString

If Mode=Inline, this property specifies the inline substitution table's data.


Substitution table format

A substitution table may contain multiple rows, each row specifying the string to replace and the string to replace it in the form "string_to_replace=replacement_string".

abcde=ABCDE
01234=56789

The example substitution table above will replace the strings "abcde" with "ABCDE, and the strings "01234" with "56789".

The escape character \ can be used in the substitution table to create the following escape characters.

\rCR
\nLF
\tTab
\==
\\\
\uXXXXthe XXXX Unicode character