Possible Duplicate:
Python regex find all overlapping matches?
I don't see why python's re.findall does not return all the found substrings in my example below. Any ideas?
>>> import re
import re
>>> t='1 2 3'
t='1 2 3'
>>> m=re.findall('\d\s\d',t)
m=re.findall('\d\s\d',t)
>>> m
m
['1 2']
But the expected result is m = ['1 2', '2 3'].
For info, I am using python 2.6.1. Thanks.