title: Improve search result by broadening matches
body: <p>I am trying to improve search result using PHP. e.g. when product name is <code>ZSX-3185BC</code> user can not find the product when put something like <code>ZSX3185BC</code>. So far i get something like: </p>
  
  <pre><code>$input = '01.10-2010';  
  $to_replace = array('.','-');
  $clean = str_replace($to_replace, '/',$input);`
  </code></pre>
  
  <p>I've tried this, but it does not work correctly <em>(not sure, posted in comment without elaboration -ed)</em></p>
  
  <pre><code>$str = ""; 
  $len = strlen($strSearch) - 1; 
  // Loop through the search string to check each charecter is acceptable and strip those that are not 
  for ($i = 0; $i &lt;= $len; $i++) {
      if(preg_match("/\w|-| /",$strSearch[$i])) {
          $str = $str . $strSearch[$i]; 
      }
  }
  </code></pre>