title: Why is Angularjs ng-pattern not working with the following regexp?
body: <p>For some reason the initialized value doesn't appear in the field, but the second field without the ng-pattern does work. any ideas?</p>
  
  <pre><code>    angular.module('app', []).controller('MainCtrl', function($scope) {
        $scope.widget = {title: 'abc', title2: 'abc'};
      });
  
      &lt;div ng-app="app" ng-controller="MainCtrl"&gt;
       &lt;input ng-model="widget.title" required ng-pattern="/[a-zA-Z]{4}[0-9]{6,6}[a-zA-Z0-9]{3}/"&gt;
       &lt;br /&gt;&lt;br /&gt;   
       input 1: {{ widget.title }}
       &lt;br /&gt;&lt;br /&gt;   
       &lt;input ng-model="widget.title2" required&gt;
       &lt;br /&gt;&lt;br /&gt;   
       input 2: {{ widget.title2 }}
      &lt;/div&gt;
  </code></pre>
  
  <p>Here is the Fiddle
  <a href="http://jsfiddle.net/wkzab/1/">http://jsfiddle.net/wkzab/1/</a></p>