title: python match exclamation mark in mutiline
body: <p>I have a file that has a repeated pattern output</p>
  
  <pre><code>!-----------------------------------------------------------------
  line 1
  line 2
  line 3
  .....
  -------------------------------------------------------------------!
  </code></pre>
  
  <p>I am trying to match and extract all the occurrences of these blocks but the below returns all the file </p>
  
  <pre><code>match = re.search(r'\!-.*-\!', data, re.DOTALL)
  print match.group()
  </code></pre>