Thread: Regex examples
View Single Post
Old 06-02-2013, 06:29 PM   #222
ReaderRabbit
Member
ReaderRabbit began at the beginning.
 
ReaderRabbit's Avatar
 
Posts: 24
Karma: 10
Join Date: Mar 2011
Location: Colorado
Device: Cruz Tablet
Thanks

Quote:
Originally Posted by PeterT View Post
Why not try
Code:
([a-z])\.([A-Z])
replace by
Code:
\1\. \2
This will find a lower-case letter, followed by a period and an upper-case letter, and replace them by the lower-case letter, period, a space and the upper-case letter.
That worked but what if the sentence ends with a '?' or '!'

Thanks so much.
ReaderRabbit is offline   Reply With Quote