title: finding substrings in python
body: <p>Can you please help me to get the substrings between two characters at each occurrence</p>
  
  <p>For example to get all the substrings between "Q" and "E" in the given example sequence in all occurrences:</p>
  
  <pre><code>ex: QUWESEADFQDFSAEDFS
  </code></pre>
  
  <p>and to find the substring with minimum length.</p>