Thread: Regex examples
View Single Post
Old 06-02-2013, 06:42 PM   #225
mzmm
Groupie
mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.
 
mzmm's Avatar
 
Posts: 171
Karma: 86271
Join Date: Feb 2012
Device: iPad, Kindle Touch, Sony PRS-T1
Quote:
Originally Posted by PeterT View Post
Try
Code:
([a-z])([\.\?\!])([A-Z])
and
\1\2 \3
* I MIGHT have escaped more than I need too... Probably [.?!] would work instead of [\.\?\!]
yep, beat me to it but the ! doesn't need escaping

** edit, turns out the ? doesn't need escaping either.
mzmm is offline   Reply With Quote