title: Regex allow digits and a single dot
body: <p>What would be the regex to allow digits <em>and</em> a dot? Regarding this <code>\D</code> only allows digits, but it doesn't allow a dot, I need it to allow digits and <strong>one</strong> dot this is refer as a float value I need to be valid when doing a <code>keyup</code> function in jQuery, but all I need is the regex that only allows what I need it to allow.</p>
  
  <p>This will be in the native of JavaScript <code>replace</code> function to remove non-digits and other symbols (except a dot).</p>
  
  <p>Cheers.</p>