View Single Post
Old 09-23-2011, 08:53 AM   #2
charleski
Wizard
charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.
 
Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
Sentences that miss both the full stop and the space are easy:
Find:
([a-z])([A-Z])
Replace:
\1. \2

Sentences that only miss the full stop are harder, as the capitalised word might be a name. If this doesn't occur too often it's easiest just to step through with Find Next and hit Replace on those instances that aren't names. (Obviously a sentence can end in a variety of ways, this searches for hits where there is no punctuation between the words.)
Find:
([a-z]) ([A-Z])
Replace:
\1. \2

Alternatively, if you can list all the names in your book, first change them all to something like '#1', '#2', etc, then Replace All using the above code and then change the # codes back to the correct names.

Remember to save to a different file at each step so you can go back if you make a mistake.
charleski is offline   Reply With Quote