title: Remove dots and spaces from strings
body: <p>I want to remove dots <code>.</code> and spaces <code> </code> with regex <code>text.replace(/[ .]+/g, '')</code>.</p>
  <blockquote>
  <p>This is an  8-string <code>12.34.5678</code>; and this is another 13-string <code>1234 5678 9123 0</code> okay?</p>
  </blockquote>
  <p>But the main problem is that it removes all dots and spaces, from the sentence.</p>
  <blockquote>
  <p>Thisisan8-string12345678;andthisisanother13-string1234567891230okay?</p>
  </blockquote>
  <ul>
  <li>an 8-string <code>12.34.5678</code></li>
  <li>another 13-string <code>1234 5678 9123 0</code></li>
  </ul>
  <p>Needs to be converted to.</p>
  <ul>
  <li>an 8-string <code>12345678</code></li>
  <li>another 13-string <code>1234567891230</code></li>
  </ul>
  <p>So the sentence will be:</p>
  <blockquote>
  <p>This is an 8-string <code>12345678</code>; and this is another 13-string <code>1234567891230</code> okay?</p>
  </blockquote>
  <p>What am I doing wrong? Im stuck with finding/matching the right solution.</p>