You are here:

Microsoft Word/Find and replace with wildcards

Advertisement


Question
I have to find the following pieces of text (for example) in documents and make them bold.

It will take this form:

.  1-4
.  1
.  5-58

The part that has to be bold is the digit, the hyphen and the following digit (if there is one).
I do not want any other digits that could be in the document to be in bold.  I only want the figures that come after the full stop and two spaces.  I've tried to solve this but I'm not very good with wild cards.  Can you help please?

Answer
Hi Lesley,

The way I understand your query is that you have text in your document which looks somewhat like this

<period><2spaces><numbers><hyphen><numbers><space>  (e.g, ".  21-21 ")

You want to make the numbers,hyphen & numbers as bold.

Try this

Open Find&Replace dialog box.
Turn the wildcards ON
Put these characters in the find box without the double quotes  ".  ?*\-* "  
This is <period><2 spaces><question mark><asterix><back slash><hyphen><asterix><space>

Put these characters in the replace box without quotes "^&"  mark formatting as bold (press Ctrl+B)

You will get the desired results.  However, you will also get the <period><2spaces> at the beginning and <space> at the end as bold.  You can unbold them by finding for bold period 2 spaces and replacing all such instances as unbold.  

Hope the above is clear.  Let me know if you need more detailed information.

Regards,
Mahesh K

About Microsoft Word
This topic answers questions related to Microsoft Word stand-alone or Microsoft Office Word including Word 2003, Word 2007, Office 2000, and Office XP. You can get Word help on formatting text, tables, tabs, fonts, styles, general Word layouts, bullets, headings, and outlines, using templates, toolbar modifications, and using Track Changes. You may also find tips on linking Word and Excel embedded objects including charts. This site does not provide a general Word tutorial nor the basics of using a word processor. It provides specific answers to using Microsoft Word only. If you do not see your Word question answered in this area then please ask a Word question here

Microsoft Word

All Answers


Answers by Expert:


Ask Experts

Volunteer


Mahesh

Expertise

I will be able to answer questions relating to MsWord operations. Any kind of troubleshooting, formatting tricks, shortcuts, etc. which people will need help on. I can also troubleshoot/format documents which are challenging for some users. It helps if users send the document in question along with the query.

Experience

I have been a word processor and handling a word processing team for 3yrs. Also been a trainer for word processing.

Publications
I had been a expert in this panel before.

Education/Credentials
B.Sc (Physics)

©2016 About.com. All rights reserved.