View Single Post
 
Old 05-13-2015, 10:40 AM
mysterytramp mysterytramp is offline Windows 7 64bit Office 2010 64bit
Novice
 
Join Date: May 2015
Posts: 8
mysterytramp is on a distinguished road
Default Issue with wildcard search

I have a document in which some sentences end with two periods, some with one. I need to standardize on two periods.

I could do a simple S/R (search for period space and replace with period space space), unfortunately, it's a long document and I'll get lots of false positives. For example, there will be a number of instances of "U.S. XYZ," which won't need the second period.

I had created a wildcard search that worked fine in sample text.

Search for ". ([A-Z])

Replace with ". \1"

But in the actual document, the replacement was basically "\1 ."

It appears because I have "Track Changes" on, Word burps.

Is here a workaround? I could turn off "Track Changes" but it would be better to leave it on.

mt

P.S. If I get this to work, the search string could be changed to:

([!A-Z]). ([A-Z])

Which should prevent any period following a capital letter (as in U.S.)
Reply With Quote