Overcoming regex memory limits?

Yin yin_12180 at yahoo.com
Thu Oct 31 10:27:43 EST 2002


I am using python to parse a large text file.  I am using the (.*?)
construct in regular expressions to do matching.  Unfortunately, I
exceed the limit for the match size in this regular expression due to
an overflow of the stack.

I've heard that it may be possible to match without using the (.*?)
construct and this may solve the problem.  Any suggestions short of a
rewriting the parsing routine would be appreciated.

Thanks in advance.
Yin



More information about the Python-list mailing list