天天看點

word替換使用通配符_在Word 2013中搜尋時如何使用通配符

word替換使用通配符_在Word 2013中搜尋時如何使用通配符

word替換使用通配符

word替換使用通配符_在Word 2013中搜尋時如何使用通配符

Word includes a very powerful search feature that allows you to find information based on almost every kind of condition. There are special wildcard characters that allow you to search for information based on specific patterns and character sequences.

Word包含一項非常強大的搜尋功能,可讓您根據幾乎每種情況來查找資訊。 有特殊的通配符,可讓您根據特定的模式和字元序列來搜尋資訊。

Wildcard searches are available on the standard Find and Replace dialog box, using a special setting. We’ll show you the basics of using this feature to help you learn how you can find almost anything in your Word documents.

使用特殊設定,可以在标準“查找和替換”對話框中使用通配符搜尋。 我們将向您展示使用此功能的基礎知識,以幫助您了解如何在Word文檔中找到幾乎所有内容。

In your Word document, press “Ctrl + H” to open the “Find and Replace” dialog box. Click “More” to expand the dialog box and access more options.

在您的Word文檔中,按“ Ctrl + H”打開“查找和替換”對話框。 單擊“更多”以展開對話框并通路更多選項。

NOTE: If the “Less” button is available where the “More” button should be, you don’t have to do anything. The dialog box is already expanded.

注意:如果“少”按鈕在應有“更多”按鈕的位置可用,則您無需執行任何操作。 該對話框已經展開。

word替換使用通配符_在Word 2013中搜尋時如何使用通配符

Select the “Use wildcards” check box so there is a check mark in the box. Notice that the “Use Wildcards” option displays below the “Find what” edit box.

選中“使用通配符”複選框,以便在複選框中打勾。 請注意,“使用通配符”選項顯示在“查找内容”編輯框下方。

NOTE: When the “Use wildcards” check box is selected, Word finds only the exact text that you specify. The “Match case” and “Find whole words only” check boxes are unavailable (grayed out) to indicate that these options are automatically turned on and can’t be turned off until the “Use wildcards” option is turned off.

注意:當選中“使用通配符”複選框時,Word僅查找您指定的确切文本。 “比對大小寫”和“僅查找整個單詞”複選框不可用(顯示為灰色),表示這些選項已自動打開,隻有在關閉“使用通配符”選項後才能關閉。

word替換使用通配符_在Word 2013中搜尋時如何使用通配符

As an example of finding text using a wildcard, we will search for all occurrences of any text beginning with “t” and ending with “e,” with a variable number of characters in between. To do this, type a “t” in the “Find what” edit box and then click the “Special” button at the bottom of the dialog box. Select “0 or More Characters,” or the “*”, from the popup menu.

作為使用通配符查找文本的示例,我們将搜尋所有出現的以“ t”開頭和以“ e”結尾(介于中間的字元數不限)的所有文本。 為此,請在“查找内容”編輯框中鍵入“ t”,然後單擊對話框底部的“特殊”按鈕。 從彈出菜單中選擇“ 0個或更多字元”或“ *”。

NOTE: If you know the special character you need to enter, you can type it directly into the “Find what” edit box. The “Special” button provides a reference in case you don’t remember the special characters available to you and their meaning.

注意:如果您知道需要輸入的特殊字元,則可以直接在“查找内容”編輯框中鍵入它。 如果您不記得可用的特殊字元及其含義,“特殊”按鈕将提供參考。

word替換使用通配符_在Word 2013中搜尋時如何使用通配符

Then, type an “e” after the asterisk and click “Find Next.”

然後,在星号後鍵入“ e”,然後單擊“查找下一個”。

word替換使用通配符_在Word 2013中搜尋時如何使用通配符

The search term with the wildcard is evaluated and the first occurrence is found. Keep clicking “Find Next” to find each part of the text that matches your search term.

評估帶有通配符的搜尋詞并找到第一個出現的詞。 繼續單擊“查找下一個”以查找與您的搜尋詞比對的文本的每個部分。

word替換使用通配符_在Word 2013中搜尋時如何使用通配符

To find text containing any one character, use the “?”. For example, entering “d?g” in the “Find what” edit box will find all three letter words beginning with “d” and ending with “g,”,such as “dig,” “dug,” and “dog.”

要查找包含任何一個字元的文本,請使用“?”。 例如,在“查找内容”編輯框中輸入“ d?g”将找到所有以“ d”開頭并以“ g”結尾的三個字母詞,例如“ dig”,“ dug”和“ dog”。 ”

word替換使用通配符_在Word 2013中搜尋時如何使用通配符

You can also specify certain letters to vary among when searching using the “[]”. For example, entering “b[aeiou]t” in the “Find what” edit box will find “bat,” “bet,” “bit,” “bot,”,and “but.”

您也可以指定某些字母,以使用“ []”進行搜尋。 例如,在“查找内容”編輯框中輸入“ bet”将找到“蝙蝠”,“下注”,“位”,“機器人”和“但是”。

word替換使用通配符_在Word 2013中搜尋時如何使用通配符

If you have the “Use Wildcards” option on and you want to search for one of the wildcard characters, use a forward slash (“/”) in front of the character to find it. For example, to find a question mark while “Use Wildcards” is on, enter “/?” in the “Find what” edit box.

如果啟用了“使用通配符”選項,并且要搜尋通配符之一,請在字元前面使用正斜杠(“ /”)進行查找。 例如,要在“使用通配符”啟用時查找問号,請輸入“ /?” 在“查找内容”編輯框中。

word替換使用通配符_在Word 2013中搜尋時如何使用通配符

You can also replace text using the wildcard characters. For example, you can use the \n (the “n” is replaced with a number) wildcard to search for an expression and then replace it with the rearranged expression. For example, we entered “(Kaufman) (Lori)” in the “Find what” edit box and “\2 \1” (enter a space between the “2” and the second “\”) in the “Replace with” edit box. Word finds “Kaufman Lori” and replaces it with “Lori Kaufman.”

您也可以使用通配符替換文本。 例如,您可以使用\ n(“ n”替換為數字)通配符來搜尋表達式,然後将其替換為重新排列的表達式。 例如,我們在“查找内容”編輯框中輸入了“(Kaufman)(Lori)”,并在“替換為”中輸入了“ \ 2 \ 1”(在“ 2”和第二個“ \”之間輸入一個空格)編輯框。 Word找到“ Kaufman Lori”,并将其替換為“ Lori Kaufman”。

word替換使用通配符_在Word 2013中搜尋時如何使用通配符

There are additional wildcards and codes you can use to help you search for variations of words, multiple words at once, or similar groups of words.

您還可以使用其他通配符和代碼來幫助您搜尋單詞的變體,一次搜尋多個單詞或相似的單詞組。

翻譯自: https://www.howtogeek.com/213411/how-to-use-wildcards-when-searching-in-word-2013/

word替換使用通配符