![]() |
|
#1
|
|||
|
|||
|
As a copy-editor, I frequently have to do things like change "20-21" to "20–21", or simply replace one number or letter in the middle of a string, where the bits both before and after the character may vary.
Although I can use "any digit" or "any letter" to create the search string, I can't see any way to create a compatible replace string. "Find what text" recreates the entire string, so it's not possible to change a character in the middle. Does anyone have any suggestions? |
|
#2
|
||||
|
||||
|
For the example you gave, use a wildcard Find/Replace, with:
Find =([0-9])-([0-9]) Replace = \1–\2
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
#3
|
|||
|
|||
|
Thanks! That would do the trick.
|
|
| Tags |
| find and replace, findwhattext, wildcards |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| In Find and Replace, can Word stop after each Replace? | wardw | Word | 1 | 06-08-2017 02:47 PM |
New to VBA - Find/Replace in MS Word 2010 that Searches Header/Footer
|
mbreggs | Word VBA | 4 | 06-01-2016 08:02 AM |
Find what box in Find and replace limits the length of a search term
|
Hoxton118 | Word VBA | 7 | 06-10-2014 05:05 AM |
Bad view when using Find and Find & Replace - Word places found string on top line
|
paulkaye | Word | 4 | 12-06-2011 11:05 PM |
Help with find and replace or query and replace
|
shabbaranks | Excel | 4 | 03-19-2011 08:38 AM |