Bottleneck? More efficient regular expression?

Jeremy Fincher tweedgeezer at hotmail.com
Tue Sep 23 23:08:28 EDT 2003


"Tina Li" <tina_li23 AT hotmail DOT com> wrote in message news:<3f70a03d$1_4 at corp.newsgroups.com>:
> Thanks for the suggestion. It does solve my problem -- but just out of curiosity, I'd like to know what caused the
> over-limit as well.

That was caused by the multitude of non-greedy quantifiers you've got
in there.

If you haven't yet read Friedl's "Mastering Regular Expressions," it's
quite elucidating.

Jeremy




More information about the Python-list mailing list