title: How to use $scope.$watch and ng-repeat?
body: <p>I have working code:</p>
  
  <pre class="lang-js prettyprint-override"><code>$scope.$watch('vm.reg', function (newValue) {
    if (newValue !=  null) {
      vm.reg = newValue.replace(/\D+/, '');
    }
  });
  </code></pre>
  
  <pre class="lang-html prettyprint-override"><code>&lt;input type="text" class="form-control" name="dest_regex" ng-model="vm.reg"/&gt;
  </code></pre>
  
  <p>But I need to use <code>$watch</code> for <code>ng-repeat</code> something like this:</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;div ng-repeat="fi in filterElments"&gt;
      &lt;input type="text" class="form-control" name="dest_regex" ng-model="fi.reg"/&gt;
  
      &lt;!--&lt;input type="text" class="form-control" name="dest_regex" ng-model="fi.reg"/&gt;
      &lt;input type="text" class="form-control" name="dest_regex" ng-model="fi.reg"/&gt;
       .................. --&gt;
  &lt;/div&gt;
  </code></pre>