7.2

Table Of Contents
l Replace with: Enter the string of data to use as a replacement. Since this is also a variable property box, the same as
above applies.
l List of words to find and replace: Lists each string to find, and its replacement. These are executed in order,
from top to bottom.
l Find: Enter the string of data for which to search. In this variable property box, you may enter static char-
acters, variables, job information elements, data selections, or any combination of these.
l Replace with: Enter the string of data to use as a replacement. Since this is also a variable property box, the
same as above applies.
l
Button:Click to add a new line to the list of words to find and replace.
l
Button:Click to remove the currently selected line from the list.
l
Button:Move the currently selected line up one position.
l
Button:Move the currently selected line down one position.
On Error Tab
The On Error Tab is common to all tasks. Details can be found on "Task Properties Dialog" (page 53).
Advanced Search and Replace Action Task Properties
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.
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
when this option is selected.
l Search whole file: Select if you want the entire data stream to be searched as if it were a single string of text.
When this option is selected, PlanetPress Suite Workflow Tools loads the entire file in memory. It offers more
flexibility, since search expressions may span across multiple lines and may result in more successful hits. Note
that since this option uses more memory, it may affect performance.
l String to search: Enter your search string or regular expression in this variable property box. To enter multiple
strings or expressions, press Enter after each one (note that only one string can be entered in the Replace with box).
l Treat as regular expression: Select to specify that the string or strings entered above are to be interpreted as reg-
ular expressions rather than ordinary text strings. This option disables all position options as well as the Whole words
only option.
l Search options group
l Case sensitive: Select to force the plugin to match the character casing of the search string above with the char-
acters found in the file. If this option is selected, DAY and “Day” will not be considered as matching the search string
day”.
©2010 Objectif Lune Inc - 115 -