2021.1

Table Of Contents
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 specified 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
PReS Workflow. 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.
Task properties
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, PReS Workflow 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, PReS Workflow loads the
entire file in memory. It offers more flexibility, since search expressions may span
Page 384