title: how to match lines between pattern using re module in python
body: <p>I have a string (with multiple lines) which contains the following:</p>
  
  <pre><code>"Name=My name
  Address=......
  \##### To extract from here ####
  line 1
  line 2
  line 3
  \##### To extract till here ####
  close"
  </code></pre>
  
  <p>How do I extract the lines between <code>"##### To extract *"</code> string including the pattern as well?</p>
  
  <p>Output should be the following:</p>
  
  <pre><code>\##### To extract from here ####
  line 1
  line 2
  line 3
  </code></pre>