Is there a way to perform a sub on only one character of a matching pattern?
For example, if I have the string
"This is a word. This is another word. H.E. Stein"
and I want to perform a sub on just the '.'s at the end of a sentence so it becomes
"This is a word This is another word H.E. Stein"
How should I go about doing this?