7.1

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.
On Error Tab
The On Error Tab is common to all tasks. Details can be found on "Task Properties Dialog" (page 51).
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”.
l Whole word only: Select force the plugin to search only for strings that match the search string from beginning to
end (cannot be used with regular expressions). If this option is selected, “DAY” and “DAYS” will not be considered as
matching strings.
l Position options group:Specify the location where the string must be found using this group. Note that this whole
group is disabled when the Treat as regular expression option is selected.
l Anywhere on the line: Select to indicate that the search string can be anywhere on the line.
l At the beginning of a line: Select to indicate that the search string must be the first string on the line.
l At the end of a line: Select to indicate that the search string must be the last string on the line.
l At column: Select to indicate that the search string must be in a specific column. Specify the column number
(the value must be greater then 0) in the box below.
l Between specific words: Select to indicate that the search string must be between specific words. Specify
these words in the Words before and Words after boxes below.
©2010 Objectif Lune Inc - 109 -