Finding and replacing text
You can search for a specific word or phrase in the current document and optionally replace it with other text. The Find and Replace commands can also operate on all open documents, instead of just the current one. (To find and replace text in documents that are not open, use the Global Find & Replace command.)
To find specific text
- On the Home menu, go to the Edit group and click Find (or press Ctrl+F).
- In the Find box, type the text you want to find. (Note that the word containing the insertion point is already entered for you.)
- Under Options and Direction and range, select the desired options. (See “Options and settings for find/replace“, below.)
- Click Find Next. The found text will be selected in the document window. If necessary, keep clicking Find Next until the desired occurrence of the search text has been found.
After closing the Find/Replace dialog box, you can quickly search for the next occurrence of the search text by pressing F3.
To find and replace specific text
- On the Home menu, go to the Edit group and click Replace (or press Ctrl+H).
- In the Find box, type the text you want to find. (Note that the word containing the insertion point is already entered for you.)
- In the Replace box, type the text you want to replace the search text with.
- Under Options and Direction and range, select the desired options. (See “Options and settings for find/replace“, below.)
- Do one of the following:
- If you want to decide for each occurrence of the search text whether to replace it or not:
- Click Find Next.
- If a match is found, click Replace to replace it or Find Next to skip it.
- Repeat step 2 until all occurrences of the search text have been found.
- If you want to replace all occurrences of the search text at once, click Replace All.
- If you want to decide for each occurrence of the search text whether to replace it or not:
Options and settings for find/replace
Options
- Match case: Only finds occurrences that have the same capitalization as the search text. For example, if this option is selected and you search for “hello”, any occurrence of “Hello” will be ignored.
- Match whole words only: Only finds occurrences that are whole words. For example, if this option is selected and you search for “art”, words like “heart” will be ignored.
- Match in hyperlinks only: Only finds occurrences in the URLs of hyperlinks. For example, if this option is selected and you search for “namo”, all links to “www.namo.com” will match, but the word “namo” in text content will be ignored.
- Match full-/half-width: Only finds occurrences that match the same “width” as the search text. This option only applies to documents using double-byte characters, such as Korean or Chinese characters.
Direction and range
- Up: The current document will be searched starting at the location of the insertion point and progressing upward. The search will terminate at the top of the document.
- Down: The current document will be searched starting at the location of the insertion point and progressing downward. The search will terminate at the bottom of the document.
- Start at top of document: The current document will be searched starting at the top, regardless of the location of the insertion point.
- Search all open documents: All open documents will be searched, starting at the top of the document that was opened first.
The Find and Replace commands do not accept wildcard characters, such as “?” and “*”.
Related topics
Finding and replacing text throughout a site