title: Is there a way in python to apply a list of regex patterns that are stored in a list to a single string?
body: <p>i have a list of regex patterns  (stored in a list type) that I would like to apply to a string.</p>
  
  <p>Does anyone know a good way to:</p>
  
  <ol>
  <li>Apply every regex pattern in the list to the string
  and</li>
  <li>Call a different function that is associated with that pattern in the list if it matches.</li>
  </ol>
  
  <p>I would like to do this in python if possible</p>
  
  <p>thanks in advance.</p>