I\'m such an amateur at regex, how do I allow spaces(doesn\'t matter how many) in this regex?
if(preg_match(\'/[^A-Za-z0-9_-]/\', $str)) return FALSE;
the \s in the regular expretion like this '/[^A-Za-z0-9_-\s]/' mean the space
\s
'/[^A-Za-z0-9_-\s]/'