I have this eregi statement that validates the field company name on a form, but for some reason it won't accept spaces. I have put /s at different places in the statement but it has not worked to this point. Can someone tell me where and what to add to make the following allow spaces?.
if (eregi("^([0-9 a-z\']|-|\.|\,| {2,50})+$",$company) == false){
$companyvalid = 1;
$required = 1;}