The StringReplace function replaces a string in the input stream.
| Input | Data Type | Description |
|---|---|---|
| Input1 | String | The string to be modified. |
| Output | Data Type | Description |
|---|---|---|
| Output1 | String | The modified string. |
| Name | Property Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Mode | choice |
Specifies whether the substitution table used is read from a file or if the InlineTable is used.
|
||||||||||||||||||
| FilePath | String |
If If the file path is not absolute, the path is relative to the project owner's home directory. |
||||||||||||||||||
| FileEncoding | choice |
If
|
||||||||||||||||||
| InlineTable | String |
If |
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.
| \r | CR |
|---|---|
| \n | LF |
| \t | Tab |
| \= | = |
| \\ | \ |
| \uXXXX | the XXXX Unicode character |