title: php using preg_replace to replace dot
body: <p>I want to extend my current preg_replace code and also replace all dots (.).</p>
  
  <p>How can I extend my code, everything I try does not work.</p>
  
  <pre><code>&lt;?php $optiontitleok = preg_replace('/(\s|&amp;(amp;)?)+/', '', $optiontitle);?&gt;
  </code></pre>