title: How to find all matches using python regular expression finditer
body: <p>I am trying to find a pattern. I have written the below code:</p>
  
  <pre><code>string = '000,001,100,001'
  pattern = '(.*)00(.*),(.*)00(.*)'
  
  for m in re.finditer(pattern, string):
      print(m.groups())
  </code></pre>
  
  <p>The code above returns ('000,001,1', '', '', '1') where as it misses the match with groups ('', '0', '', '1,100,001')</p>
  
  <p>I am trying to workout if the characters before and after the '00' on consecutive lines are the same. The code i wrote matches '000,001,1<strong>00</strong>,<strong>00</strong>1'. How to match '<strong>00</strong>0,<strong>00</strong>1,100,001'.</p>
  
  <p>How the obtain match groups for the later?</p>