In the use of WPS is often used in the "Find and replace", for some simple search and replacement may be known to many people how to do, but in the face of some more complex to find and replace, it is impossible. For simple "Find and replace", this article does not repeat, the following describes the advanced "find and replace" the use of it!
About Advanced Find and replace
The "advanced substitution" referred to here refers primarily to the action when using wildcard characters is checked.
Wildcard characters are similar to regular expressions, and use the various combinations of wildcards to accomplish many complex "find and replace".
"Computer" or "computer" or "electronic computer" replaced by "Computer"
Many people may think that this will take three steps to complete, in fact, the use of WPS advanced "find and replace" one step can be completed.
The operation method is as follows:
A. Open the Find and Replace dialog box (CTRL+H), and in the Find What box, enter: "Computer | computer | Electronic computer", in the "Replace with" box, enter: "Computer";
B. Select the Use wildcards check box under Search options, and click Replace All. (pictured below)
Figure 1
Explanation: "|" It means "or" in the wildcard.
Replace "M2" or "M3" with "M2" or "M3"
This question is more interesting and more common. There are two ways to solve this problem:
1, step-by-Step search and replacement method
This approach is a common method for complex lookups: step-and-step narrowing of the scope.
The operation method is as follows:
A. Open the Find and Replace dialog box (shortcut key: ctrl+f), enter in the Find What box: "m[23]", and select the highlight all items found in this range check box;
B. Select Use wildcards under Search options, click Find All (Figure 2), and then click the Superscript button on the Formatting toolbar (shortcut key: ctrl+shift+=, as shown in Figure 3). At this time "M2", "M3" are set to superscript;
Figure 2
Figure 3
C. In the Find What box, enter "M", click Find All, and then click the Superscript button on the Formatting toolbar to make it no longer superscript.