title: angularjs ng-pattern not working for textarea
body: <p>I have a textarea that needs to be validated. If the textarea is not valid, then a button should be disabled. I am trying to use ngPattern to validate that textarea, but it doesn't seem to be working. My example code is as follows:</p>
  
  <pre><code>&lt;div ng-app="test"&gt;
  &lt;form name="theForm" ng-controller="FormCtrl" novalidate="novalidate" autocomplete="off"&gt;
      &lt;textarea ng-pattern="\b(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b, \d{1,5}, (external|internal)"&gt;&lt;/textarea&gt;
      &lt;button ng-disabled="theForm.$invalid" ng-click="action()"&gt;Action&lt;/button&gt;
  &lt;/form&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><a href="http://jsfiddle.net/sYyf2/7/" rel="nofollow">http://jsfiddle.net/sYyf2/7/</a></p>
  
  <p>The pattern in the box should be "(IP address), (port), (internal|external)" where (port) is a number between 1 and 5 digits.</p>