Replacing Text

This dialog box can also be used to specify the replacement of a variable or any character string. The search can be global (i.e., all loaded files) or only within the current file.

You can reach this dialog box by using the ‘Replace’ option in the ‘Search’ menu bar

Alt+s, then r.

The user interface is simple: Type in the text and the replacement text, then press the Replace button. The search expression can be a regular expression. If this is the case, do not forget to select the corresponding option in the Match group box.

Possible options are:

           Use of a confirmation dialog box or if Wedit should replace all matches globally without confirmation of each occurrence.

           Identifier search: Implies that to be a valid match, non-identifier characters should enclose the text. This allows you to replace all occurrences of the variable 'j' in 'z' without replacing all j's in z's!

           The Scope field: Specifies that the files will be included in the search. Either the current file or all loaded files can be used by the search.

           Case: Specifies if the search should be case sensitive.

           Direction: You can search towards the end of the file, towards the beginning of the file. If you choose a global search, it searches forward only.