title: REGEX - using finditer()
body: <p>Let's say I have a string <code>abbb</code>. I am trying to print the following pattern using regex:</p>
  <pre><code>a
  ab
  abb
  abbb
  </code></pre>
  <p>I tried doing:</p>
  <pre><code>import re
  line = &quot;abbb&quot;
  m = re.finditer('ab*',line)
  for i in m:
      print i.group(1)
  </code></pre>
  <p>This does not work. In the python docs it says <code>ab*</code> will match <code>a</code>, <code>ab</code>, or <code>a</code> followed by any number of <code>b</code>s. I was thinking <code>finditer()</code> would store all the different matches in a list like <code>[a,ab,...,abbb]</code>. There are very limited examples of <code>finditer()</code> on the net. How can I achieve this? Please note that I need to use regex.</p>