Re: re - multiple results

2005-06-13 Thread Fredrik Lundh
Pingveno wrote: > I'm working on the Python Challenge (make sure to try it: > http://www.pythonchallenge.com). One of the puzzles requires the use of > regular expressions, but with multiple matches in the text. I tried to > use re.findall(), but I only go one result instead of a list of results.

Re: re - multiple results

2005-06-10 Thread Michael Hoffman
Pingveno wrote: > I'm working on the Python Challenge (make sure to try it: > http://www.pythonchallenge.com). One of the puzzles requires the use of > regular expressions, but with multiple matches in the text. I tried to > use re.findall(), but I only go one result instead of a list of results. >

re - multiple results

2005-06-10 Thread Pingveno
I'm working on the Python Challenge (make sure to try it: http://www.pythonchallenge.com). One of the puzzles requires the use of regular expressions, but with multiple matches in the text. I tried to use re.findall(), but I only go one result instead of a list of results. >>> print re.findall(r"m