title: how to replace all non alphanumeric characters with space in php?
body: <pre><code>$html=strip_tags($html);
  $html=ereg_replace("[^A-Za-zäÄÜüÖö]"," ",$html);
  $words = preg_split("/[\s,]+/", $html);
  </code></pre>
  
  <p>doesnt this replace all non (A-Z, a-z, a o u with umlauts) characters with space?
  I am losing words like zugänglich etc with umlauts</p>
  
  <p>is there any thing wrong with the regex?</p>
  
  <p>edit:</p>
  
  <p>I replaced ereg_replace with preg_replace but somehow the special characters like :, ® are not getting replace by space...</p>