Text Replacement
This adapter searches a text document for a character string (case-sensitive) and outputs a text document with the same character encoding in which each searched character string has been replaced by a new character string.
If you want to replace a character string in an XML document, note that the adapter always outputs a plain text document, so it is no longer necessarily well-formed XML!
The character encoding of the document must be set explicitly, e.g. via the Document Properties Changer.
Properties
Operation | Determines which operation the adapter executes Possible values: |
Parameters
Adapter | Main class of the adapter (do not change!) Possible values: |
searchString | String to search for in the input text document Possible values: Any string |
replaceString | String by which Possible values: Any string |
Status values
1 | The operation was executed successfully. |
-1 | The operation failed due to a technical error. |
Input
This adapter expects any text document.
Output
The adapter outputs a text document in which the found text was replaced.