Find and replace text
-
Go to Home > Replace.
-
Enter the word or phrase you want to replace in Find what.
-
Enter your new text in Replace with.
-
Choose Replace All to change all occurrences of the word or phrase. Or, select Find Next until you find the one you want to update, and then choose Replace.
-
To specify only upper or lowercase in your search, select More > Match case. There are several other ways to search in this menu.
For other options, see Find and replace text
Find and replace basic text
In the upper-right corner of the document, in the search box , type the word or phrase that you want to find, and Word will highlight all instances of the word or phrase throughout the document.
To replace found text:
-
Select the magnifying glass, and then select Replace.
-
In the Replace With box, type the replacement text.
-
Select Replace All or Replace.
Tips:
-
You can also open the basic Find and Replace pane with the keyboard shortcut CONTROL + H.
-
When you replace text, it’s a good idea to select Replace instead of Replace All. That way you can review each item before replacing it.
-
You can find text with special formatting, such as bold or highlight, by using the Format menu.
-
Select View > Navigation Pane.
-
In the Navigation Pane, select the magnifying glass.
-
Select Settings , and then select Advanced Find & Replace.
Notes:
-
Select the arrow at the bottom of the Find and Replace dialog box to show all options.
-
-
-
On the Format menu, select the option that you want.
If a second dialog box opens, select the options that you want, and then select OK.
-
In the Find and Replace dialog box, select Find Next or Find All.
You can find and replace text with special formatting, such as bold or highlight, by using the Format menu.
-
Select View > Navigation Pane.
-
In the Navigation Pane, select the magnifying glass.
-
Select Settings , and then select Advanced Find & Replace.
-
At the top of the dialog box, select Replace.
Notes:
-
Select the arrow at the bottom of the Find and Replace dialog box to show all options.
-
-
-
On the Find what box, type the text that you want to find.
-
On the Format menu, select the formatting that you want to find.
If a second dialog box opens, select the options that you want, and then select OK.
-
Select in the box next to Replace with.
-
On the Format menu, select the replacement formatting. If a second dialog box appears, select the formats that you want, and then select OK.
-
Select Replace, Replace All, or Find Next.
-
Select View > Navigation Pane.
-
In the Navigation Pane, select the magnifying glass.
-
Select Settings , and then select Advanced Find & Replace.
Notes:
-
Select the arrow at the bottom of the Find and Replace dialog box to show all options.
-
-
-
On the Special menu, select the special character that you want to find.
-
Select Find Next.
-
Select View > Navigation Pane.
-
In the Navigation Pane, select the magnifying glass.
-
Select Settings , and then select Advanced Find & Replace.
Notes:
-
Select the arrow at the bottom of the Find and Replace dialog box to show all options.
-
-
-
At the top of the Find and Replace dialog box, select Replace and then select in the Find What box, but don’t type anything there. Later, when you select a special character, Word will automatically put the character code in the box for you.
Note: Select the arrow at the bottom of the Find and Replace dialog box to show all options.
-
On the Special menu, select the special character that you want to find.
-
Select in the Replace with box.
-
On the Special menu, select the special character that you want to use as a replacement.
-
Select Replace or Find Next.
-
Select View > Navigation Pane.
-
In the Navigation Pane, select the magnifying glass.
-
Select Settings , and then select Advanced Find & Replace.
-
Select the Use wildcards check box.
If you don’t see the Use wildcards check box, select .
-
Select the Special menu, select a wildcard character, and then type any additional text in the Find what box.
-
Select Find Next.
Tips:
-
To cancel a search in progress, press + PERIOD.
-
You can also enter a wildcard character directly in the Find what box instead of selecting an item from the Special pop-up menu.
-
To search for a character that’s defined as a wildcard character, type a backslash () before the character. For example, type ? to find a question mark.
-
You can use parentheses to group the wildcard characters and text and to indicate the order of evaluation. For example, search for <(pre)*(ed)> to find «presorted» and «prevented.»
-
You can search for an expression and use the n wildcard character to replace the search string with the rearranged expression. For example, type (Newman) (Belinda) in the Find what box and 2 1 in the Replace with box. Word will find «Newman Belinda» and replace it with «Belinda Newman.»
-
-
To replace found text:
-
Select the Replace tab, and then select the Replace with box.
-
Select Special, select a wildcard character, and then type any additional text in the Replace with box.
-
Select Replace All, Replace, or Find Next.
Tip: When you replace text, it’s a good idea to select Replace instead of Replace All. That way you can confirm each replacement to make sure that it’s correct.
-
You can refine a search by using any of the following wildcard characters.
To find |
Use this |
For example |
---|---|---|
Any single character |
? |
s?t finds «sat» and «set.» |
Any string of characters |
* |
s*d finds «sad» and «started.» |
One of the specified characters |
[ ] |
w[io]n finds «win» and «won.» |
Any single character in this range |
[-] |
[r-t]ight finds «right» and «sight» and «tight.» Ranges must be in ascending order. |
Any single character except the characters inside the brackets |
[!] |
m[!a]st finds «mist» and «most» but not «mast.» |
Any single character except characters in the range inside the brackets |
[!x-z] |
t[!a-m]ck finds «tock» and «tuck» but not «tack» or «tick.» Ranges must be in ascending order. |
Exactly n occurrences of a character or expression |
{ n} |
fe{2}d finds «feed» but not «fed.» |
At least n occurrences of a character or expression |
{ n,} |
fe{1,}d finds «fed» and «feed.» |
A range of occurrences of a character or expression |
{ n, n} |
10{1,3} finds «10,» «100,» and «1000.» |
One or more occurrences of a character or expression |
@ |
lo@t finds «lot» and «loot.» |
The beginning of a word |
< |
<(inter) finds «interesting» and «intercept» but not «splintered.» |
The end of a word |
> |
(in)> finds «in» and «within,» but not «interesting.» |
Word for the web lets you find and replace basic text. You can match case or fine whole words only. For more varied options, open your document in Word for the desktop.
Need more help?
Many of the applications that you use every day will have a way for you to search through the text that appears on the screen or in the file that is currently open. Often this will be accessible by choosing a “Find” option from a menu or using the Ctrl + F keyboard shortcut.
Sometimes you will make a mistake when you are typing a document, but you won’t realize your mistake until long after it has already happened.
Going back and manually fixing that mistake can be time-consuming if it has happened a lot, and you may inadvertently miss something.
Fortunately, Word 2013 has a function that allows you to automatically replace every occurrence of a word in your document with a different word. So if you incorrectly used a term multiple times throughout a document, it is a simple matter to replace that word with a different one.
- Click the Home tab.
- Click the Replace button in the Editing section of the ribbon.
- Type the word to replace into the Find what field.
- Type the replacement word to use into the Replace with field, then click the Replace All button.
Our guide continues below with more information on replacing all occurrences of a word in Microsoft Word, including pictures of these steps.
How to Replace a Word with a Different Word in Word 2013 (Guide with Pictures)
We are going to cover the very basics of this feature first, then we are going to show you how to customize it a little bit to prevent Word from accidentally replacing parts of a Word that match your criteria.
Step 1: Open your document in Word 2013.
Step 2: Click the Home tab at the top of the window.
Step 3: Click the Replace button in the Editing section on the right side of the ribbon.
Step 4: Type the word that you want to replace into the Find what field, then type the word that you want to use to replace it into the Replace with field. Click the Replace All button at the bottom of the window when you are finished.
The problem you may run into with the feature is that it is replacing that text string, not just occurrences of the word. So if you are replacing “xxx” with “yyy”, but you have the word “xxxa” in your document, then it will also be changed to “yyya”. Fortunately, there is a way to prevent this.
How to Use Find and Replace in Word 2013 to Only Replace Whole Words
The steps in this section are going to modify the previous section slightly to prevent Word from replacing text strings that appear within other words.
Step 1: Click the More button at the bottom of the Find and Replace window.
Step 2: Click the box to the left of Find whole words only.
You will notice that there are many other options on this menu that you can also use to customize the replace function. For example, using the Match case option would only replace words that were in the same case. This option allows you to replace instances of “John” while ignoring “JOHN”.
This tool becomes even more powerful when you include the Format and Special options at the bottom of the window, which allows you to find and replace information based on the type of formatting that has been applied to it. This is a very powerful, customizable tool that will let you find and replace in almost any way that you might need.
How Can I Get to the Find and Replace Dialog Box in Microsoft Word 2013?
As we have discussed in earlier sections of this document you will find Word’s find and replace feature if you select the Home tab at the top of the window, then click Replace in the Editing group in the window.
But you can also find and replace text by using the Ctrl + H keyboard shortcut to open the Find and Replace box. When you use this shortcut rather than the Ctrl + F option to find a specific word in your document then the window will open with the Replace tab as the active tab.
This can be a little faster as it cuts out the part of the process where you need to choose Replace if you had selected the Advanced Find option from the menu.
More Information on How to Replace All Occurrences of a Word in Word 2013
The steps in the article above provide you with the means to quickly find and replace a word that appears multiple times within your Microsoft Word document. That assumes that the word is spelled the same way each time, otherwise, Word is going to miss those misspellings.
You may wish to use the spell checker before you do this so that Word can catch spelling mistakes so it doesn’t overlook a misspelled version of the word.
All of the advanced find and replace options that appear on the Find and Replace window after you click More are:
- Match case
- Find whole words only
- Use wildcards
- Sounds like (English)
- Find all word forms (English)
- Match prefix
- Match suffix
- Ignore punctuation characters
- Ignore white-space characters
As you can see, this tool has a lot of different variables that you can apply which will enable you to find and replace almost any string of text or word that you might want to change within your document.
MS Word has been updating both the find and replace option for years to the point where it has become an incredibly powerful and useful way to find text or find words and quickly search through your document content. In newer versions of Word when you click the Find button or press Ctrl + F on your keyboard it will open a Navigation pane at the left side of the window. If you just need to find individual instances of a word or phrase ion long documents then this can be a life saver.
You always have the open to press Ctrl + H to open the Find and Replace window in newer versions of Word, however, if you prefer the replace or find box over the new Navigation pane.
Did you know that there is a freehand drawing tool in Word 2013? Find out how to draw in Word 2013 if you need to add a shape to a drawing that you can’t replicate with one of the other options.
Additional Sources
Matthew Burleigh has been writing tech tutorials since 2008. His writing has appeared on dozens of different websites and been read over 50 million times.
After receiving his Bachelor’s and Master’s degrees in Computer Science he spent several years working in IT management for small businesses. However, he now works full time writing content online and creating websites.
His main writing topics include iPhones, Microsoft Office, Google Apps, Android, and Photoshop, but he has also written about many other tech topics as well.
Read his full bio here.
In the search options, enter the text template you want to replace, then enter the new content. The tool will find all occurrences of the given fragment and fix them. In addition to a letter or phrase, you can replace a space with another word, as well as completely remove unnecessary words from the text without correction. Specify them in the template, and leave the replacement field blank.
How to use the tool
Copy the text you want to change and paste it into the box. Fill in the settings and click the «Replace» button. Large text can be uploaded as a file. Next, copy the resulting text from the adjacent window or upload the file.
When a tool is useful
Quickly edit large texts. You do not need to manually correct errors, repetitions, typos, spelling of names, numbers, titles. This is convenient when editing materials: it allows you to significantly save time. Quickly make changes to technical regulations: do not re-read large files to find and reprint the information you need — just use the service. Regardless of the size of the text, the required words are guaranteed to be replaced by the specified text, character, or number.
Why Text Converter is useful
On the main page of the site, several dozens of various text tools are presented. You can quickly format a document of any type and size. Utilities are available for free and without registration.
I have a string: "y, i agree with u."
And I have array dictionary [(word_will_replace, [word_will_be_replaced])]
:
[('yes', ['y', 'ya', 'ye']), ('you', ['u', 'yu'])]
i want to replace ‘y’ with ‘yes’ and ‘u’ with ‘you’ according to the array dictionary.
So the result i want: "yes, i agree with you."
I want to keep the punctuation there.
asked May 17, 2013 at 3:14
3
import re
s="y, i agree with u. yu."
l=[('yes', ['y', 'ya', 'ye']), ('you', ['u', 'yu'])]
d={ k : "\b(?:" + "|".join(v) + ")\b" for k,v in l}
for k,r in d.items(): s = re.sub(r, k, s)
print s
Output
yes, i agree with you. you.
answered May 17, 2013 at 3:22
perrealperreal
93.5k21 gold badges153 silver badges179 bronze badges
3
Extending @gnibbler’s answer from Replacing substrings given a dictionary of strings-to-be-replaced as keys and replacements as values. Python with the tips implemented from Raymond Hettinger in the comments.
import re
text = "y, i agree with u."
replacements = [('yes', ['y', 'ya', 'ye']), ('you', ['u', 'yu'])]
d = {w: repl for repl, words in replacements for w in words}
def fn(match):
return d[match.group()]
print re.sub('|'.join(r'b{0}b'.format(re.escape(k)) for k in d), fn, text)
>>>
yes, i agree with you.
answered May 17, 2013 at 3:23
jamylakjamylak
127k30 gold badges230 silver badges230 bronze badges
1
That’s not a dictionary — it’s a list, but it could be converted to a dict
pretty easily. In this case, however, I would make it a little more explicit:
d = {}
replacements = [('yes', ['y', 'ya', 'ye']), ('you', ['u', 'yu'])]
for value,words in replacements:
for word in words:
d[word] = value
Now you have the dictionary mapping responses to what you want to replace them with:
{'y':'yes', 'ya':'yes', 'ye':'yes',...}
once you have that, you can pop in my answer from here using regular expressions: https://stackoverflow.com/a/15324369/748858
answered May 17, 2013 at 3:17
mgilsonmgilson
296k64 gold badges622 silver badges688 bronze badges
1
Often when working in Microsoft Word we only need to change one or two words in the file to make it relevant to another client or project. For Example, updating a client’s name in a 30-page contract or updating the address of a company or speakers name in a briefing document.
Because scrolling through your document changing each word individually would be a tedious and time-consuming task Microsoft has built-in a hand tool called ‘Find and Replace’.
Find and Replace allows you to replace one word with another, across the entirety of your Microsoft Word Document at the click of a button.
There is no limit to how many times you can use this tool, but it does need to be done word by word, we can’t yet find and replace multiple words at once. But still, it’s a huge time saver and will guarantee you don’t miss a word that needs replacing.
In this post we will show you how to use the Find and Replace tool in Microsoft Word and leave you updating your document in seconds.
Using Microsoft Word’s Find and Replace
- Open Word
- Find and click Edit in the Home bar
- Under Edit click Find
- In the Find tab press Replace….
- This will open a navigation box on the left-hand side of your Word Document
- Type the word you wish to replace in the Find box
- Type the word you wish to replace this word with, in the second text box
- Choose Replace. To replace all instances at the same time, select Replace All.
- Press OK.
You have no successfully used Words Find and Replace feature to update your Microsoft Word Document.
Advanced Word Replacement
If your word search shows multiple options, as shown below.
You can scroll through the highlighted words until you find the word you would like to replace. This will narrow down the word search and ensure you only replace the exact word you are looking for.
Looking for an easier solution to your collaboration frustrations?
When collaborating in Microsoft Word, your email inbox can quickly become filled with updated versions of a document being sent back and forward between colleagues.
John made an edit, sent an email ‘see updated attached’.
Then Lucy made an edit, sent an email 30minutes later ‘updated version attached’, and it goes on for days.
Sending updated versions via email is one way to know a new version is available and required your attention. But it can also clutter your inbox with internal emails, with a single line or sometimes nobody of text in the email.
The alternative is to send them via a group chat channel such as Slack or Microsoft Teams, but you should make a new channel for the document updates so that you don’t miss one, or lose it in an open channel as other conversations start happening around the document being sent.
With overflowing inboxes and your slack channel constantly telling you there are un-read messages there needs to be a solution for collaborating alone. Somewhere your updated versions can live in peace, with no other noise around them to allow you to easily review and check them at any time.
The solution is here and it comes in the form of a great new purpose-built tool called Simul Docs.
Simul was built just for Microsoft Word and for you, to help you collaborate with ease.
First and foremost, Simul will store and manage every version of your document in an easy to navigate toolbar that you can access from anywhere you have an internet connection (or offline if you do a quick download before losing your connection).
As a new version of your document is created, Simul will automatically save the file under a numerical version number that makes sense. The first version is named 0.0.1, the second 0.0.2, the third 0.0.3 and so on. Making it easy for you to keep track of how many versions have been made and which one is the most recent.
But what about any extra notes or comments the author wanted to make, ones they would usually put in the email such as ‘Tim, this is my final round of edits before we send onto client’? No worries, Simul allows you to add comments and notes to any version as well, so your team can see what is going on at all times.
Speaking of comments and notes, Simul will also track every comment, change or edit made to a version for you, without you having to remember to turn tracked changes on. That’s pretty cool, right?
So a tool that manages your version control, saves your files and stores them and tracks all of your edits and changes without you thinking about any of it, it sounds too good to be true or as though it would be difficult to use or implement. Well, don’t worry it’s not, it’s here and it is called Simul Docs and it’s so easy to use, after walking through the in-app tutorial we had it down within 3 minutes.
It’s a bit like an apple product, it just makes sense. It’s clean and simple, nothing too complicated, but with everything you need all in the one spot.
If you’re not convinced already, head over to Simul now and give their free trial a go.
Collaboration just got a whole lot easier with Simul Docs.