title: ng-pattern not working for form validation
body: <p>I have tried to use a lot of regex which I found on the internet but with no luck. I am trying to validate if a form's input ranges between 0-100 (both 0 &amp; 100 are valid inputs) but for some reason The error is not showing up. Pasting my code below</p>
  
  <pre><code>&lt;form class="row" name="myForm"&gt;
      &lt;div ng-repeat="month in plan.months" class="form-group"&gt;
          &lt;div class="col-sm-2"&gt;{{month.label}}  : &lt;/div&gt;
          &lt;div class="col-sm-10"&gt;
          &lt;input type="text"
             name="name"
             ng-model="month.value"
             class="form-control"
             ng-pattern="/^([1-9]?[0-9])$/"
          /&gt;
          &lt;br /&gt;
      &lt;/div&gt;
  &lt;span class="error" style="color:red" ng-show="myForm.name.$error.pattern"&gt;Please enter a Percentage value between 1 &amp; 100&lt;/span&gt;
      &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>