Special Replacement Operators Overview

Search and Replace has the following special replacement operators:

Operator

Function

%1<%0.2lf(E1/2)>

A special Number Replacement that returns the %1 term number string divided by 2. The string retuned will have 2 decimal places.

%%srfound%%

Returns the current search string.

%%srfound %% - Special

A special form of the %%srfound%% operator can be used to strip specified characters from the search hit. See %%srfound %% - Special for more information.

%%srpath%%

Returns the path of the current file

%%srfile%%

Returns the file name

%%srfiledate%%

Returns the current date stamp of the file. This is the date prior to a replace made by Search and Replace.

%%srfiletime%%

Returns the current time stamp of the file. This is the time prior to a replace made by Search and Replace.

%%srfilesize%%

Returns the file size prior to the replace made by Search and Replace.

%%srdate%%

Returns the current date of the machine.

%%srtime%%

Returns the current time of the machine.

%%srprepend%%
%%srappend%%

See Special Script Prepend-Append Operators for more information.

%%srformat%%=xx

A special binary search operator, %%srformat%%=xx, is used to Reformat Files at the specified column, xx.

%%envvar=winbootdir%%

An example of the Environment Variable function. This replace would return the machine environment variable, Winbootdir. This type of string can also be used in the search string.

%%today%%

This is not a replacement operator. %%today%% is used in manually created scripts.

Notes: