Quote:
Originally posted by Unknown553
Would this also prevent people from typing multiple periods in a row? I know a couple of my members and myself included use "..." in a lot of my posts.
|
EDIT: (Sorry didnt noticed "period")
To make it work with periods use this:
PHP Code:
$message=preg_replace("/(\.)([^\.]\S)/", "\\1 \\2", $message);
It will not touch multiple periods like this: ...