Using the Replace Assistant

In addition to searching, Windows Grep can also perform string replacements. This feature can be extremely useful for globally changing variable names in a large number of source code files, for example, or modifying HTML tags on web pages.

Note that you can only perform replacements in plain ASCII text files.

The replace assistant will guide you through the process of entering the information needed to perform a replace. It will ask the following questions:

After you have finished replacing, a replace report will be output to the results window, which you can save or print. This will show which files were modified and the number of modifications made to each.

Take care when replacing!