title: How to add a regex pattern for decimal places in an input tag?
body: <p>I'm trying to autoformat an input tag to display decimal places.. I first thought that maybe I should use Javascript but after some research I discovered that it could be done using html5 specifically using the <strong>pattern</strong> attribute. I was told that you can assign a regex expression in it but I could not find any.</p>
  
  <p>this is my input tag</p>
  
  <pre><code>&lt;input type='text' name='amount' id='amount'/&gt; 
  </code></pre>