Mateusz Dobrowolny added the comment:

The official help
https://docs.python.org/3/library/re.html?highlight=findall#re.findall
in fact contains more information, especially the one mentioned in 
http://bugs.python.org/issue3384.

Regarding my issue - I am afraid it was my misunderstanding, because it looks 
like Regular Expressions return always LAST match and Python re.findall reutrns 
what it is said to be: the list of groups.
And since I repeat a captured group, I get only the last match.

More here for example here:
http://www.regular-expressions.info/captureall.html

I was learning regexp yesterday, and first I reported this without knowing 
everytnig about capturing groups.

If returning the last match for repeting a capturing group is defined within 
RegEx itself, than there is no need to mention it in Python documentation...

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue22353>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to