I have a page that searches an Excel file and returns the matches. The problem I have run into is some of the cells contain data like this “HP/Agilent”. If I enter HP/Agilent into the search field I get this error: Warning: preg_match(): Unknown modifier 'a' in /search.php on line 227
If I strip the slashes out, it does not find a match. I have also tried addslashes() and that doesn’t work. I need to be able to have the / when entered into the search field.