title: regex pattern for positive numbers without decimal points upto certain length
body: <p>we want our application to accept rollnumbers, we are using angularjs, we are unable to find a perfect way to validate a positive number which has to be greater than 0 and less than certain number like <code>10000000</code> but the problem is, our angularjs validation code is accepting numbers like <code>1.0</code> which is not acceptable for our application, please a correct way to doing it</p>
  
  <pre><code>&lt;input
      type="number"
      name="student_rollnumber"
      class="form-control"
      ng-model="student.student_rollnumber"
      min="1"
      max="1000000000"
      required
      placeholder="Student Rollnumber (required)"
      step="1"
  /&gt;
  </code></pre>