title: How to exclude comma (,) in regex?
body: <p>I came to scenario where I only want [0-9 or .] For that I used this regex:</p>
  
  <pre><code>[0-9.]$
  </code></pre>
  
  <p>This regex accepts 0-9 and . (dot for decimal). But when I write something like this </p>
  
  <pre><code>1,1 
  </code></pre>
  
  <p>It also accepts comma (,). How can I avoid this?</p>