Quote:
Originally Posted by ReaderRabbit
That worked but what if the sentence ends with a '?' or '!'
|
the ? you need to escape with a slash, but the ! you can just drop in there.
this would work:
Code:
([a-z])([\.\?!])([A-Z])
\1\2 \3
the [] is basically looking for any one of the characters inside of it.
this is a really great reference:
http://www.regular-expressions.info/characters.html