View Single Post
 
Old 07-08-2015, 08:57 AM
BruceM BruceM is offline Windows 7 64bit Office 2010 32bit
Advanced Beginner
 
Join Date: Feb 2015
Posts: 41
BruceM is on a distinguished road
Default Wildcard Find and Replace anomaly

I have come across what seems to be a Find and Replace anomaly using wildcards. Trying to replace <period><space> with <period><space><space>. Please note that I do not agree with the current "rule" that there should be just one space after a period.

The Find string is (one space between the parentheses):
(.) ([A-Z])
I have also tried:
(. )([A-Z])
and also looked for something other than a space after <period><space>
(. )([! ])

Using the first Find example above, the Replace string is (two spaces between \1 and \2):
\1 \2

Working with the following:

One sentence. Another sentence.

Find correctly highlights ". A". However, the Replace produces this:

One sentence.A nother sentence. (two spaces between "A" and "n")

Can anybody tell me what's going on here?
Reply With Quote