Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-29-2017, 02:10 PM
cheech1981 cheech1981 is offline Find and Replace with space Windows 7 64bit Find and Replace with space Office 2010 64bit
Advanced Beginner
Find and Replace with space
 
Join Date: Nov 2011
Location: New Jersey, USA
Posts: 77
cheech1981 is on a distinguished road
Default Find and Replace with space

Hi,



I am trying the following find and replace in Word 2016 with Wildcards on:

(p.)([1-9])
\1 \2

The author has, for instance, p.23 and I want it to be p. 23 (with a space between the abbreviation for page and the numeral).

However, my output is p.2 3

I'm guessing I'm just missing a simple fix, but I'm not seeing it at the moment. Any ideas? Thank you in advance!
Reply With Quote
  #2  
Old 03-29-2017, 02:20 PM
macropod's Avatar
macropod macropod is offline Find and Replace with space Windows 7 64bit Find and Replace with space Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

A wildcard Find/Replace, with:
Find = (p.)([0-9])
Replace = \1 \2
should turn:
p.23
into:
p. 23
I can see no reason for the behaviour you describe with that F/R. I suspect an errant F/R has been used somewhere along the line.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 03-29-2017, 02:24 PM
cheech1981 cheech1981 is offline Find and Replace with space Windows 7 64bit Find and Replace with space Office 2010 64bit
Advanced Beginner
Find and Replace with space
 
Join Date: Nov 2011
Location: New Jersey, USA
Posts: 77
cheech1981 is on a distinguished road
Default

Yea, I just wanted to make sure I wasn't going crazy. I just repeated it and got the same issue. I do have some tracked changes in the document (although it's not too heavy yet). There only ended up being a few instances in the document, so I just changed them manually. If I run into this again in the future, I'll see if I can nail down the problem. Thank you for your quick response Paul.
Reply With Quote
  #4  
Old 03-29-2017, 02:33 PM
macropod's Avatar
macropod macropod is offline Find and Replace with space Windows 7 64bit Find and Replace with space Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Ah, using Tracked Changes changes everything! That explains the behaviour. You may get better results with:
Find = (p.)([0-9]{1,})
Replace = \1 \2
but you may even need to turn Tracked Changes off while doing the F/R.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Find and Replace with space VBA Batch Find & Replace for all MSOffice extensions, to replace File Name and Content of the File QA_Compliance_Advisor Word VBA 11 09-11-2014 11:51 PM
Find and Replace with space Find what box in Find and replace limits the length of a search term Hoxton118 Word VBA 7 06-10-2014 05:05 AM
Find/Find and Replace Loop Tango Mike Word 3 04-20-2014 02:47 PM
Find and Replace with space Bad view when using Find and Find & Replace - Word places found string on top line paulkaye Word 4 12-06-2011 11:05 PM
Find and Replace with space Help with find and replace or query and replace shabbaranks Excel 4 03-19-2011 08:38 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:07 AM.


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