2021.2

Table Of Contents
(\d*), contains the value of x, the second the value of y.
The replacement string would then be: Page $1 of $2 total pages (where $1 contains x, and
$2 contains y).
For more information about regular expressions, visit a website like https://www.regular-
expressions.info/.
To test out your regular expressions go to: https://regex101.com/.
Input
Any text-based file can be used in this task, even formats that are not directly compatible with
PlanetPress 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, PlanetPress 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, PlanetPress Workflow
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.
Page 384