Is Perl *that* good?
Peter Hansen
peter at engcorp.com
Tue Apr 27 10:03:16 EDT 2004
Roy Smith wrote:
> I don't see anything in the reference manual which says re.match()
> caches compilations, but I suspect it does. Even a trivial check for
> "thisRegEx is lastRegEx" would be sufficient to negate the speed
> advantage of pre-compiling in most cases. Anybody know if it does this?
Found after trying a half dozen different searches. (Short answer: yes.)
http://groups.google.com/groups?q=comp.lang.python+cache+regular+match&selm=mailman.1058996747.17558.python-list%40python.org
-Peter
More information about the Python-list
mailing list