I want to validate that the user has entered a comma separated list of words only using regex, will this work/is there a better way:
$match = \"#^([^0-9 A-z
your $match gives an error. this
$match
$str = 'sdfbdf,wefwef,323r,dfvdfv'; $match = "/[\S\,]+\S/"; preg_match($match,$str,$m);
can work, but why don't you use explode?
explode