Exactly,
Now this will work as long as there are no wildcards in the pattern.
Thus, only with fixed strings. But if you have a fixed string, there
is really no need to use regex, as it will complicate you life for no
real reason (as opposed to simple string methods).
With a more complex pattern
>From the Python 2.4 docs:
findall( pattern, string[, flags])
Return a list of all ***non-overlapping*** matches of pattern in
string
By design, the regex functions return non-overlapping patterns.
Without doing some kind of looping, I think you are out of luck.
If you pattern is fixed,