Thread: Regex examples
View Single Post
Old 06-02-2013, 05:54 PM   #220
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 80,361
Karma: 148951763
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by ReaderRabbit View Post
Is there a Regex that would find a sentence ending with a period but no space after it?

EX: But he seemed glad to sit there.People don’t want to know.

I am reading a book that has a lot of these errors in it. VERY annoying . . . would like to fix this.

Thanks to all.
Find:
Code:
\.([A-Z])
Replace:
Code:
\. \1
That will find all cases of . followed by an uppercase letter and add in a space. But, that will also find things like P.M. and convert it to P. M..

Last edited by JSWolf; 06-02-2013 at 05:56 PM.
JSWolf is offline   Reply With Quote