![]() |
#1
|
|||
|
|||
![]()
I've searched and searched and I must be a complete idiot because I cannot get MS Word's wildcards to work properly. (And I'm quite good with Word. Honest.)
I want to replace hyphens that are used to show negative numbers, and replace them with en-dashes. So, for example, I need -2.1 to become –2.1. So, in "Find" (with wildcards checked) I've entered: -[0-9] This works perfectly to find what I'm looking for. In "Replace" I typed (with wildcards checked): –\1 This is obviously wrong, since it results in the error message: "The replace with text contains a group number which is out of range." I would be so grateful if someone could help me fix this. I'm using Word 2011 (Mac). |
#2
|
||||
|
||||
![]()
The find string should be
-([0-9]) in order for \1 to work. See http://www.gmayor.com/replace_using_wildcards.htm
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
![]() |
Tags |
search and replace, wildcards |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
dylansmith | PowerPoint | 3 | 03-04-2023 08:55 PM |
Wildcards | Madcat | Word | 2 | 12-21-2014 08:27 PM |
![]() |
imag | Word | 1 | 11-05-2014 11:42 PM |
![]() |
sbatson5 | Word | 2 | 04-13-2012 03:49 AM |
![]() |
tinfanide | Word | 2 | 09-10-2011 10:40 AM |