Special Replacement Operators - %%srfound %% Special Operation

A special extension to the %%srfound%% special replacement operator is available to remove one or more characters from the search hit. The form is:

%%srfoundcharacters to remove specified here%%

where characters to remove specified here is one or more characters which, if present in the search hit, will be removed from the replace.

Regular expression mode is not required for this special extension.

%%srfound %% Special Replace Examples

Search String:

Sample Search Hit:

Replace String:

Replace Results:

Explanation:

Find Me

Find Me

%%srfound de%%

FinM

The replacement string removes any instances of space, 'd', and 'e' characters from the search hit. Therefore if a replace is permitted all instances of the string 'Find Me' would be changed to 'FinM'

Search String:

Sample Search Hit:

Replace String:

Replace Results:

Explanation:

Find*Me
Finding some meteors
%%srfoundie%%
Fndng som mteors
The special %%srfound%% function works with regular expression search hits. Regardless of what is returned between the strings 'Find' and 'Me', all instances 'i' and 'e' would be removed.

Search String:

Sample Search Hit:

Replace String:

Replace Results:

Explanation:

+10[0-9 .]*[0-9.]
331.3954 3328
%%srfound. \t%%
33139543328
This is another regular expression example. Here, any '.', space, or tab characters that are present in the search hit would be removed upon a replace.