title: simple regex: multiple dots(.)
body: <p>I am trying to delete everything after the .com, .etc, in a URL; to make it more meaningful</p>
  
  <p>so </p>
  
  <pre><code>sub.domain.com/324fr9?=awerf?=awrf
  </code></pre>
  
  <p>turns to</p>
  
  <pre><code>sub.domain.com/
  </code></pre>
  
  <p>except the same regex doesn't work for</p>
  
  <pre><code>noSubDomain.com/crap?=yes123456789timesOver
  </code></pre>
  
  <p>because it only has one dot, not two!</p>
  
  <p>Here's my regex(javascript):</p>
  
  <pre><code>/.*:\/\/.*\..*\.com/g
  </code></pre>