The find/replace option allows the insertion of numbers that
increment/decrement by a fixed value on each subsequent outline item
that matches the regular expression in the Find
field.
$[n1,n2]
Although the term looks like regular expression syntax this is not
a regular expression, yet it is only available when regular expression
is enabled in the dialog and the action is Replace All
. Only
the first appearance of this syntax will be used for the replacement
value. If you enter this syntax multiple times it will insert the
value of the first occurrence multiple times.
Use the syntax $[n1,n2] in the Replacement
field to insert the numbers. n1 is the starting
number, n2 is the increment value. To decrement use a
negative value.
Examples:
$[108, -2] will insert the number 108 at the first match, 106 at the second match, etc.
To add a line number
at the start of each outline entry
you would use ^ as the entry in the Find
field,
and $[1,1]
(note the trailing space) as the entry in
the Replacement
field.