Hi
Using regexp for sure !
If just you want to detect if your sentence is incorrect try :
$sent = "word1, word2, word3";
$bool = ereg(",[ ]*", $sent);
Better, if you want to remove these optionnal extra blank:
$sent = "word1, word2, word3";
$sent = ereg_replace(",[ ]*", ",", $sent);
echo($sent);