title: Warning: preg_match() [function.preg-match]: Unknown modifier
body: <p>I'm getting this error...</p>
  
  <p>Warning: preg_match() [function.preg-match]: Unknown modifier '1' in C:\path-to-plugin.php on line 147</p>
  
  <p>When I run the keyword "Test $2/1 test+word!" through the function below</p>
  
  <pre><code>function my_get_kw_in_content($theKeyword, $theContent)
      {
  //ERROR OCCURS NEXT LINE
      return preg_match('/\b' . $theKeyword . '\b/i', $theContent);
      }
  </code></pre>
  
  <p>I'm assuming that I need to sanitize the keyword to escape the "/" character (and possibly more). I'd appreciate any suggestions you have to sanitize the string before running it through the preg_match.</p>
  
  <p>UPDATE:
  This appears to work thanks to Thai:</p>
  
  <pre><code>function my_get_kw_in_content($theKeyword, $theContent)
      {
      $theKeyword = preg_quote($theKeyword, '/');
      return preg_match('/\b' . $theKeyword . '\b/i', $theContent);
      }
  </code></pre>