title: Why doesn't python's re.findall return all the found substrings in my example?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/5616822/python-regex-find-all-overlapping-matches">Python regex find all overlapping matches?</a>  </p>
  </blockquote>
  
  
  
  <p>I don't see why python's re.findall does not return all the found substrings in my example below. Any ideas?</p>
  
  <pre><code>&gt;&gt;&gt; import re
  import re
  &gt;&gt;&gt; t='1 2 3'
  t='1 2 3'
  &gt;&gt;&gt; m=re.findall('\d\s\d',t)
  m=re.findall('\d\s\d',t)
  &gt;&gt;&gt; m
  m
  ['1 2']
  </code></pre>
  
  <p>But the expected result is 
  m = ['1 2', '2 3'].</p>
  
  <p>For info, I am using python 2.6.1. Thanks.</p>