I need to match all the end-of-sentence symbols like !
, ?
, .
(period), etc. in a given body of text.
Can anyone help me out with the regex for doing such a thing?
Example Input:
This is the f!!rst sentence! Is this the second one? The third sentence is here... And the fourth one!!
Output:
This is the f!!rst sentence Is this the second one The third sentence is here And the fourth one