From: Antonio Ospite Date: Tue, 9 Apr 2013 12:01:21 +0000 (+0200) Subject: Use exrex.count() to know how many strings the regex generates X-Git-Url: https://git.ao2.it/crackpop.git/commitdiff_plain/38d8e69e7cc789683e68005846a747aa6e23f1cc?ds=sidebyside;hp=38d8e69e7cc789683e68005846a747aa6e23f1cc Use exrex.count() to know how many strings the regex generates exrex uses generators, so this saves memory as we don't have to store the whole list of results anymore. While at it refactor things a little bit so to pass the number of elements to the crackpop() function too. ---