Bottleneck? More efficient regular expression?

Tina Li tina_li23AThotmailDOTcom
Tue Sep 23 15:32:20 EDT 2003


Hello,

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.

Thanks again!

Tina

"David Eppstein" <eppstein at ics.uci.edu> wrote in message news:eppstein-22C96A.10011623092003 at news.service.uci.edu...
| In article <3f7069db_4 at corp.newsgroups.com>,
|  "Tina Li" <tina_li23 AT hotmail DOT com> wrote:
|
| > I've been struggling with a regular expression for parsing XML files,
| > which keeps giving the run time error "maximum recursion limit
| > exceeded".
|
| Why not use a real XML parser?  xml.parsers.expat is easy enough to use,
| doesn't have problems with recursion limits, and will continue working
| when someone generates a valid XML file in a slightly different version
| than the one you expect.
|
| -- 
| David Eppstein                      http://www.ics.uci.edu/~eppstein/
| Univ. of California, Irvine, School of Information & Computer Science



-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----==  Over 100,000 Newsgroups - 19 Different Servers! =-----




More information about the Python-list mailing list