<?php
$reg_exp='/[\\w \\d]+(,\\S) [\\w \\d]+/';
$text="lolololo,l lolololo";
if (preg_match($reg_exp, $text))
{
	echo "Ошибок нет";
}
else echo "Ошибка в тексте";
// your code goes here