title: Regex (for jQuery) to validate positive numbers with 2 decimal points
body: <p>I need to match a field with regex using jQuery. Currently I am using:</p>
  
  <pre><code> onsubmit: function (settings, td) {
              //select integers only
              var intRegex = /[0-9 -()+]+$/;
              var input = $(td).find('input');
              var original = input.val();
  
              if (original &lt;= 0) {
                  Alert('The amount should be bigger than 0');
                  return false;
              }
              if (!original.match(intRegex)) {
                  Alert('Please enter a valid number');
                  return false;
              }
              else {
                  return true;
              }
          }
  </code></pre>
  
  <p>A string like <code>"abc"</code> does not pass the check. But invalid characters like <code>@#$%</code> or <code>"/"</code> do pass the check, which causes an error in my method.</p>
  
  <p>I am looking for regex which:</p>
  
  <p>Matches: <code>1.20, 1, 2.00, 3.1</code></p>
  
  <p>Does not match: <code>-1.2, abc, 1/2, $, @#$%</code></p>
  
  <p>I browsed through the regex library, but if I put <code>(^\d*\.?\d*[0-9]+\d*$)|(^[0-9]+\d*\.\d*$)</code> inside my script, I get a syntax error...</p>