Replace

Please note that you have to execute the FIND command first, i.e. you always have to define the set of files to operate on before you may apply any replacement.

Note that you can exclude files from the REPLACE operation by unselecting the checkboxes in the first column of the file list. Only checked files will be subject to processing.

On the "Replace" tab, use the first text area ("Find...") to specify the text you want to replace. You may use a different content pattern than the one you where using to define the file set. This text filter uses regular expressions by default. Unselect the checkbox if you want to look for characters such as '*' or '?' without the need to escape them ('\*' or '\?'). Select the "Ignore Case" checkbox, if you do not care whether characters are upper case or lower case. This works for both, regular expressions and ordinary text. The "Wrap Lines" checkbox only concerns the way text is displayed in the text area. It does not alter the interpretation of the search text itself.

Use the second text area ("Replace with...") to define the replacement text. If you where using regular expressions for the content pattern you may use capturing groups to refer to subpatterns within brackets (()). Read the regular expression help for details.

Befor each replace operation FAR creates a backup of the concerned files. You can allways restore the backup by clicking the "Undo" button, but note that only the very last replace operation can be undone.

Note as well that you can browse the history of the regular expressions you have been executing. Just click into the respective text area ("Content Pattern", "Find..." or "Replace with...") and use Alt + ←, Alt + → with left and right arrow from the cursor block to move backward and forward in the history, or open the context menu.

The Reset button will reset the application to its initial state. In particular will the result file list be cleared.