I need to change the ereg replace to a preg replace on this statement:
$return = trim(ereg_replace(' +',' ',preg_replace('/[^a-zA-Z0-9\s]/','',strtolower($input))));
However it errors when I make the change.
Any ideas on the fix to make this work?