title: Python: Find a string between two strings, repeatedly
body: <p>I'm new to Python and still learning about regular expressions, so this question may sound trivial to some regex expert, but here you go.
  I suppose my question is a generalization of <a href="https://stackoverflow.com/questions/3368969/find-string-between-two-substrings">this question about finding a string between two strings</a>. I wonder: what if this pattern (initial_substring + substring_to_find + end_substring) is repeated many times in a long string?
  For example</p>
  
  <pre><code>test='someth1 var="this" someth2 var="that" '
  result= re.search('var=(.*) ', test)
  print result.group(1)
  &gt;&gt;&gt; "this" someth2 var="that"
  </code></pre>
  
  <p>Instead, I'd like to get a list like <code>["this","that"]</code>.
  How can I do it?</p>