[issue8185] re.findall()

Ezio Melotti report at bugs.python.org
Sat Mar 20 22:21:56 CET 2010


Ezio Melotti <ezio.melotti at gmail.com> added the comment:

What Jon said is correct, .group() is equivalent to .group(0) and returns the whole match. re.findall returns all the groups captured by each set of () as a list of strings (if there is 0 or 1 group) or a list of tuples (if there are more than 1).

----------
nosy: +ezio.melotti
resolution:  -> invalid
stage:  -> committed/rejected
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8185>
_______________________________________


More information about the Python-bugs-list mailing list