title: php preg_replace two or more spaces
body: <p>I'm looking to replace multiple instances of space characters.  My initial searches all seem to focus on using the <code>/s</code> but this includes newlines and other whitespace</p>
  
  <p>I think this should be close?  replace two or more instances spaces <code>" "</code> with one space</p>
  
  <pre><code>preg_replace('/ {2,}/', ' ', $string);
  </code></pre>