title: AngularJS - Remove ng-repeat item if contains string(s)
body: <p>I've been cleaning up an external JSON URL feed that I am using, and I have successfully removed unnecessary special characters via a filter as so:</p>
  
  <pre><code>angularJS.filter('removeChar', function(){
      return function(text) {
          text = text.replace(/\[[^\]]+\]/g, ''); // Characters inside Brackets
          return text.replace(/\;.*/, ''); // Characters after Colon
      };
  });
  
  &lt;span ng-bind-html-unsafe="item | removeChar"&gt;{{item}}&lt;/span&gt;
  </code></pre>
  
  <p>However, what I am trying to achieve now - is to remove an ng-repeat item if it contains a specific string via a filter I can use.</p>
  
  <p>For example:</p>
  
  <pre><code>&lt;div ng-repeat="item in items | removeItem"&gt;{{item['flowers']}}&lt;/div&gt;
  </code></pre>
  
  <p>If the item contains the word 'Red' or 'Green'</p>
  
  <pre><code>&lt;div&gt;Blue Roses&lt;/div&gt;
  &lt;div&gt;Red Roses&lt;/div&gt;
  &lt;div&gt;Orand and Green Roses&lt;/div&gt;
  &lt;div&gt;Yellow Roses&lt;/div&gt;
  &lt;div&gt;Red and Green Roses&lt;/div&gt;
  </code></pre>
  
  <p>Only this will display from the ng-repeat with the filter:</p>
  
  <pre><code>&lt;div&gt;Blue Roses&lt;/div&gt;
  &lt;div&gt;Yellow Roses&lt;/div&gt;
  </code></pre>
  
  <p>Help with an example would greatly be appreciated.</p>
  
  <p>Thanks!
  Roc.</p>