updated preg_match errors in search.php