title: Python, filtering list based on matched words
body: <p>What could be the more quicker way to achieve the following ?</p>
  <pre><code># Expected Output for original_list 
  
  ['Ju Moran', 'Luo Jiangning', 'Wang Zhongbo', 'Luo Haibo']
  
  # Expected Output for rule_filter
  
  ['McGill University', 'Oba School', 'Test Case Filter']
  
  </code></pre>
  <pre class="lang-py prettyprint-override"><code>import re
  
  
  filter_words = [
      'school',
      'university',
      'branch'
  ]
  
  original_list = ['Ju Moran', 'Luo Jiangning', 'Wang Zhongbo',
                   'Luo Haibo', 'McGill University', 'Oba School', 'Test Case Filter']
  
  rule_filter = [x for x in original_list if len(re.sub('\S+', '', x)) &gt; 1]
  
  [original_list.remove(i) for i in rule_filter]
  </code></pre>
  <p>In a simple manner, am trying to remove elements which have more than one space and matched my <code>filter_words</code></p>
  <blockquote>
  <p>Previous code already handle the space part.</p>
  </blockquote>