7.4

Table Of Contents
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.
l Occurrence related: Select to indicate that the search string must be found a specific number of times before
a string replacement is performed. If the Search line by line option is selected in the Search mode group, the
search counter is reset for every line. If the Search whole file option is selected in the Search mode group, the
search counter is not reset before the end of the file. Select one of the occurrence options (described below) in
the list box below and enter a value in the variable property box besides it.
l At occurrence: The replacement will take place only when the specified number of occurrences has
been reached. Specifying 2 occurrences, for instance, means that only the second occurrence will be
replaced.
l At every specified occurrence: The replacement will take place every time the specified number of
occurrences is reached. Specifying 2 occurrences, for instance, means that the second, the fourth and
the sixth (and so on) occurrence will be replaced.
l All after occurrence: All occurrences of the search string will be replaced once the specified number
of occurrences has been reached. Specifying 2 occurrences, for instance, means that all occurrences
after the second one will be replaced.