title: How can I find all matches to a regular expression in Python?
body: <p>In a program I'm writing I have Python use the <code>re.search()</code> function to find matches in a block of text and print the results. However, the program exits once it finds the first match in the block of text.</p>
  
  <p>How do I do this repeatedly where the program doesn't stop until ALL matches have been found? Is there a separate function to do this?</p>