cypreess/python-rex — pull request #8 by dex4er (2014-12-13 10:48:59+00:00)
Title: Extra g flag returns the list of all matched strings

>>> "ala ma kota" == rex('/(\w+)/g')
['ala', 'ma', 'kota']

The same in Perl:

perl> "ala ma kota" =~ /(\w+)/g;
("ala", "ma", "kota")