# Search/replace help in Word, need answer fast!

**URL:** <https://boards.straightdope.com/t/search-replace-help-in-word-need-answer-fast/600858>\
**Category:** Factual Questions\
**Created:** [October 26, 2011, 3:01pm UTC](https://boards.straightdope.com/t/search-replace-help-in-word-need-answer-fast/600858 "2011-10-26T15:01:29Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hilarity\_N.Suze](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/hilarity_n.suze/32/6223_2.png) [@Hilarity\_N.Suze](https://boards.straightdope.com/u/Hilarity_N.Suze)\
**Post date:** [October 26, 2011, 3:01pm UTC](https://boards.straightdope.com/t/search-replace-help-in-word-need-answer-fast/600858/1 "2011-10-26T15:01:29Z")

</div>

I have an index that I’m redoing. Among the things I need to do is turn 16,658 hyphens into en-spaces. I know how many there are because I accidentally hit “replace all” and had to undo it, because most of the hyphens need to be replaced, but not all of them.

I know how to search for any digit next to a hyphen. What I need to know is how to replace just the hyphen without replacing that digit. That ought to do it.

Otherwise I’m going to spend the whole day hitting “return, return, return…click on next…click on replace…return, return, return.”

Any help appreciated!

---

<div class="post-metadata">

**Author:** ![keno](https://avatars.discourse-cdn.com/v4/letter/k/f9ae1b/32.png) [@keno](https://boards.straightdope.com/u/keno)\
**Post date:** [October 26, 2011, 3:29pm UTC](https://boards.straightdope.com/t/search-replace-help-in-word-need-answer-fast/600858/2 "2011-10-26T15:29:02Z")

</div>

from Word help

When the Use wildcards check box is selected, Word finds only the exact text that you specify. Notice that the Match case and Find whole words only check boxes are unavailable (dimmed) to indicate that these options are automatically turned on. You can’t turn off these options.  
To search for a character that’s defined as a wildcard, 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, type \<(pre)\*(ed)\> to find “presorted” and “prevented”.  
**You can use the  
wildcard to search for an expression and then replace it with the rearranged expression. For example, type (Ashton) (Chris) in the Find what box and \2 \1 in the Replace with box. Word will find Ashton Chris and replace it with Chris Ashton.**

---

<div class="post-metadata">

**Author:** ![tdn](https://avatars.discourse-cdn.com/v4/letter/t/94ad74/32.png) [@tdn](https://boards.straightdope.com/u/tdn)\
**Post date:** [October 26, 2011, 3:34pm UTC](https://boards.straightdope.com/t/search-replace-help-in-word-need-answer-fast/600858/3 "2011-10-26T15:34:33Z")

</div>

If what you’re looking to replace is a digit and a dash, then you only have to do it ten times, once for each digit.

---

<div class="post-metadata">

**Author:** ![Keeve](https://avatars.discourse-cdn.com/v4/letter/k/f07891/32.png) [@Keeve](https://boards.straightdope.com/u/Keeve)\
**Post date:** [October 26, 2011, 3:52pm UTC](https://boards.straightdope.com/t/search-replace-help-in-word-need-answer-fast/600858/4 "2011-10-26T15:52:56Z")

</div>

> [@tdn](#):
>
> If what you’re looking to replace is a digit and a dash, then you only have to do it ten times, once for each digit.

ditto

---

<div class="post-metadata">

**Author:** ![Omar\_Little](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/omar_little/32/269_2.png) [@Omar\_Little](https://boards.straightdope.com/u/Omar_Little)\
**Post date:** [October 26, 2011, 3:54pm UTC](https://boards.straightdope.com/t/search-replace-help-in-word-need-answer-fast/600858/5 "2011-10-26T15:54:16Z")

</div>

> [@tdn](#):
>
> If what you’re looking to replace is a digit and a dash, then you only have to do it ten times, once for each digit.

Winner

---

<div class="post-metadata">

**Author:** ![Scarlett67](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/scarlett67/32/7387_2.png) [@Scarlett67](https://boards.straightdope.com/u/Scarlett67)\
**Post date:** [October 26, 2011, 4:18pm UTC](https://boards.straightdope.com/t/search-replace-help-in-word-need-answer-fast/600858/6 "2011-10-26T16:18:24Z")

</div>

First, make sure Track Changes is OFF. Then make a test copy of the file to run this on first!

On the Replace tab:

More \> Use Wildcards (check the box)

Find what: ([0-9])-

Replace with: \1^s

Replace All.

---

<div class="post-metadata">

**Author:** ![Hilarity\_N.Suze](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/hilarity_n.suze/32/6223_2.png) [@Hilarity\_N.Suze](https://boards.straightdope.com/u/Hilarity_N.Suze)\
**Post date:** [October 26, 2011, 4:44pm UTC](https://boards.straightdope.com/t/search-replace-help-in-word-need-answer-fast/600858/7 "2011-10-26T16:44:51Z")

</div>

**Scarlett67** thank you! I had to replace the “s” with the en-dash character (otherwise I got a space) but that was easy enough to figure out.

Yeah, in the time it took me to try to figure this out and try various things, I COULD have done the search once for each character. But this has come up before (although not with so many of them) and it will come up again, and now I have the answer.

So thanks all of you for your help!

---

<div class="post-metadata">

**Author:** ![Scarlett67](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/scarlett67/32/7387_2.png) [@Scarlett67](https://boards.straightdope.com/u/Scarlett67)\
**Post date:** [October 26, 2011, 5:31pm UTC](https://boards.straightdope.com/t/search-replace-help-in-word-need-answer-fast/600858/8 "2011-10-26T17:31:44Z")

</div>

Ah. Your OP said en space, which is what I thought you wanted for some reason (though en dash makes more sense).

Glad to help!

---

<div class="post-metadata">

**Author:** ![Hilarity\_N.Suze](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/hilarity_n.suze/32/6223_2.png) [@Hilarity\_N.Suze](https://boards.straightdope.com/u/Hilarity_N.Suze)\
**Post date:** [October 26, 2011, 6:45pm UTC](https://boards.straightdope.com/t/search-replace-help-in-word-need-answer-fast/600858/9 "2011-10-26T18:45:48Z")

</div>

> [@Scarlett67](#):
>
> Ah. Your OP said **en space,** which is what I thought you wanted for some reason (though en dash makes more sense).
> 
> Glad to help!

Oops, yep, I did! And it turns out there were only 15,164 of them. (There are still the ix-xi and the a-e and the C-F ones, but not as many).
