title: Escape dot in a regex range
body: <p>For some reason those two regex act the same way:</p>
  
  <pre><code>"43\\gf..--.65".replace(/[^\d.-]/g, "");​  // 43..--.65
  "43\\gf..--.65".replace(/[^\d\.-]/g, "");​  // 43..--.65
  </code></pre>
  
  <p><a href="http://jsfiddle.net/q7rvt/1/" rel="noreferrer">Demo</a></p>
  
  <p>In the first regex I don't escape the dot(<code>.</code>) while in the second regex I do(<code>\.</code>).</p>
  
  <p>What are the differences and why they act the same? </p>