I would like to capitalize the first letter after a dot or after a dot and a space.
$string="I am a string with several periods.period #1. period #2.";
This should be the final string:
I am a string with several periods.Period #1. Period #2.
I have already searched for a solution on stackoverflow but the solution that i found was only for capitalize the initial letter after just a dot and not for a dot and a space.