title: Python regex, how to delete all matches from a string
body: <p>I have a list of regex patterns.</p>
  
  <pre><code>rgx_list = ['pattern_1', 'pattern_2', 'pattern_3']
  </code></pre>
  
  <p>And I am using a function to loop through the list, compile the regex's, and apply a <code>findall</code> to grab the matched terms and then I would like a way of deleting said terms from the text.</p>
  
  <pre><code>def clean_text(rgx_list, text):
      matches = []
      for r in rgx_list:
          rgx = re.compile(r)
          found_matches = re.findall(rgx, text)
          matches.append(found_matches)
  </code></pre>
  
  <p>I want to do something like <code>text.delete(matches)</code> so that all of the matches will be deleted from the text and then I can return the <em>cleansed</em> text. </p>
  
  <p>Does anyone know how to do this? My current code will only work for one match of each pattern, but the text may have more than <strong>one</strong> occurence of the same pattern and I would like to eliminate all matches.</p>