2010年12月16日星期四

In Word, find and replace using wildcards

Fifth, find and replace using wildcards

For example, can an asterisk (*) wildcard search string (using the "s * d" will find "sad" and "started").

1. Click the "Edit" menu in the "Find" or "Replace" command.

2. If you do not see the "Use wildcards" checkbox, click the "Advanced" button.

3. Select the "Use Wildcards" checkbox.

4. In the "Find what" box, enter the wildcard, do the following:

* Wildcard to select from a list, click the "special character" button, then click the wildcard, then in the "Find what" box, type the text you want to find others.

• In "Find what" box, type the wildcard directly.

5. If you want to replace that, in the "Replace" box, type the replacement content.






6. Click "Find Next", "replace" or "Replace All" button.

Notes

* Check the "Use wildcards" check box, Word only to find an exact match with the specified text in the text.

* To find has been defined as a wildcard character, please type the characters before the backslash (\), for example, to find a question mark, type "\?."



Appendix, to find and replace wildcard items

If you want to find:

Any single character

Type?

For example, s? T to find "sat" and "set".

Any string

Type *

For example, s * d to find "sad" and "started".

The beginning of a word

Type <

For example, <(inter) to find "interesting" and "intercept", but does not look "splintered".

End of a word

Type>

For example, (in)> Find "in" and "within", but do not look for "interesting".

One of the specified character

Type []

For example, w [io] n to find "win" and "won".
Any single character within the specified range

Type [-]

For example, [rt] ight look "right" and "sight". Must be in ascending order to represent the range.

In parentheses outside the scope of the specified character to any single character

Type [! X-z]

For example, t [! Am] ck look "tock" and "tuck", but do not look for "tack" and "tick".

n a repeat of the previous character or expression

Type {n}

For example, fe {2} d look for "feed", but do not look for "fed".

At least n of the previous character or expression

Type {n,}

For example, fe {1,} d find the "fed" and "feed".

n to m of the previous character or expression

Type {n, m}

For example, 10 {1,3} to find "10", "100" and "1000."

More than one previous character or expression

Type @

For example, lo @ t find the "lot" and "loot".

Notes

* Use parentheses to group of wildcards and text to indicate the processing sequence, for example, you can type "<(pre) * (ed)>" to find "presorted" and "prevented".

* Can use the \ n wildcard search expression, and then replace it by rearranging the expression, for example, in the "Find what" box type "(Newton) (Christie)", in the "Replace with" box type " \ 2 \ 1 ", Word will find" Newton Christie "and replace it with" Christie Newton ".

没有评论:

发表评论