7.6

Table Of Contents
l Content: Select what the task will actually add or remove. Select Text file to add the whole content of a text file to the
beginning or end of the job file. Select Characters to add the string of characters entered in the Characters box to the
beginning or end of the job file, or to remove a given number of characters from the beginning or end of the job file.
Select Lines to add the lines of text entered in the Lines box to the beginning or end of the job file, or to remove a given
number of lines from the beginning or end of the job file.
l Position: Select whether you want the task to add or remove content from the beginning or end of the job file.
l Add CRLF after last line: Select if you want to add a CRLF (carriage return/line feed) character after the last line of
text added to the job file. This option is only available when you choose to add lines of text to the job file.
l ASCII file: Enter the path and name of the text file to be added to the job file, or use the browse button to navigate to
this file. This box is only displayed when the Text file option is selected in the Content box.
l Characters: Enter the string of characters to be added to the job file. This box is only displayed when the Characters
option is selected in the Content box.
l Lines: Enter the lines of text to be added to the job file.This box is only displayed when the Lines option is selected in
the Content box.
l Remove: Enter the number of characters or lines to be removed from the job file. This box is only displayed when
Remove is selected in the Action group and when the Characters or Lines option is selected in the Content box.
On Error Tab
The On Error Tab is common to all tasks. Details can be found on Task Properties Dialog.
If storing the message or ID, if they are store in a jobinfo they will be available in any error handling process where errors are
being forwarded. In all cases, if your process continues after the error, the contents of the variables selected in this window
will be available for the rest of your process, or whenever they are overwritten.
Advanced Search and Replace
Advanced Search and Replace action tasks are used to locate and replace strings of data within the job file and to replace them
with other strings of data. Contrary to Search and Replace action tasks, they allow the use of regular expressions.
Using regular expressions, it is possible to search for patterns rather than specific strings. For instance, a pattern can be spec-
ified to find all valid email addresses or phone numbers within the data stream.
Input
Any text-based file can be used in this task, even formats that are not directly compatible with PlanetPress. As long as the text
is visible in a text-based editor (such as Notepad), it is readable and supported by this task.
Processing
The appropriate changes are made to the data file (replacing text).
Output
The modified data file is output from this task. Metadata is not modified in any way if it is present.
Advanced Search and Replace action task properties are as follows:
General tab
l Search mode group:Select your chosen search mode within this group.
l Search line by line: Select if you want each line in the data stream to be searched separately. When this
option is selected, PlanetPress Suite Workflow Tools considers each line as an individual data stream (lines are
separated by Line Feed characters). It minimizes memory requirements but may also limit hits, since lines are
considered separately. Note that it is not possible to use search expressions that specify multiple data lines