"Arnaud Delobelle" <arnodel at googlemail.com> writes: > in the for loop. Moreover you recalculate the regexp for each element > of the list. The re library caches the compiled regexp, I think.