mack said:
Thank you very much. I tried the [(a-z)] method but couldn't quite get
it to work. I wish I could use this method--would save hours. I have to
prepare another version of this same document, with two spaces between
sentences. Is there a way to do this simply from the beginning?
It really does work. Do you have wildcards turned on in the search box
(as revealed when you turn the triangle down)?
The problem seems to have been thet some sentences ended with a quote
mark and some with just a full stop. Also other sentences start with a
quote mark. I did try to add quote marks to Elliot's instructions, but
it didn't seem to find the text. Must be typing something wrong. I
double checked that wild cards were on, and added both sets of
brackets, and the appropriate (I hope) number of spaces between.
It is not difficult to create a search string that will find all
possible sentence endings that you have been sneaking up with in your
later posts. Read the help.
Not using curly quotes, as it's "courier", but I have in much earlier
versions of the document.
That may be irrelevant. Word might be putting the curly in and
substituting back when in Courier. Regardless, follow my previous
suggestion to cut a quote from the text. There is no harm in making two
passes through the doc, one curly and one straight.
If I could have exactly what to type in, that should work. Sorry to
bother you.
I have done so every time so far.
Now, if you want to detect sentences that:
end with lower case alphabetic followed by a period, any number of
spaces and then an upper case alphabetic or by any curly straight
double or single quote
and
the same with a question mark after the period
and
the same with a single straight quote mark after the period
and
the same with a single curly quote mark after the period
and
the same with a double straight quote mark after the period
and
the same with a double curly quote mark after the period
try, with wildcards enabled
([a-z.\?][²¹'"]) {1,}([""''A-Z]) that's with one each of straight and
curly single and double quotes in two places
You will have to make another pass through the document with
([a-z.\?]) {1,}([""''A-Z])
because Word's pattern match won't allow {0,} for a count on the first
[²¹'"] expression. (At least in version v.X)
I *hate* regular expressions, which is what we are dealing with here.
Word's implementation is rather broken, probably in a misguided attempt
to make it simpler.
If you have a huge document to process, I strongly suggest reading the
help *very* carefully, followed by experiments on a copy of your
document.