Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-30-2015, 03:39 PM
adambr21 adambr21 is offline Unable to get wildcards to work Mac OS X Unable to get wildcards to work Office for Mac 2011
Novice
Unable to get wildcards to work
 
Join Date: Mar 2015
Posts: 1
adambr21 is on a distinguished road
Unhappy Unable to get wildcards to work

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).
Reply With Quote
  #2  
Old 03-30-2015, 10:31 PM
gmayor's Avatar
gmayor gmayor is offline Unable to get wildcards to work Windows 7 64bit Unable to get wildcards to work Office 2010 32bit
Expert
 
Join Date: Aug 2014
Posts: 4,137
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

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
Reply With Quote
Reply

Tags
search and replace, wildcards



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to get wildcards to work best way to use search/replace wildcards in this scenario? dylansmith PowerPoint 3 03-04-2023 08:55 PM
Wildcards Madcat Word 2 12-21-2014 08:27 PM
Unable to get wildcards to work Search with wildcards imag Word 1 11-05-2014 11:42 PM
Unable to get wildcards to work Help with replacing text with wildcards sbatson5 Word 2 04-13-2012 03:49 AM
Unable to get wildcards to work Word 2010: Wildcards Replace tinfanide Word 2 09-10-2011 10:40 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:18 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft