Peter Otten wrote: > Python puts the compiled regular expressions into a cache. The relevant By the way, re.compile() uses that cache, too: >>> import re >>> r1 = re.compile("abc") >>> r2 = re.compile("abc") >>> r1 is r2 True Peter