title: ereg_replace removing spaces
body: <p>I'm trying to use <code>ereg_replace()</code> to only allow Upper and lower letters and, and spaces since I will be exploding it using commas.</p>
  
  <p>I have this code below but it's removing the spaces and I can figure out how to allow , to pass through.</p>
  
  <pre><code>$type = ereg_replace("[^A-Za-z\.-:/-]", "", $string);
  </code></pre>
  
  <p>Also I know <code>ereg_replace()</code> is deprecated but this is the closes I have gotten.</p>