fast regex

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Tue May 11 01:48:41 EDT 2010


In message
<d46338a8-d08c-449b-b656-a6cf9f6a600e at l28g2000yqd.googlegroups.com>, 
james_027 wrote:

> I was working with regex on a very large text, really large but I have
> time constrained.

“Fast regex” is a contradiction in terms. You use regexes when you want ease 
of definition and application, not speed.

For speed, consider hand-coding your own state machine. Preferably in a 
compiled language like C.



More information about the Python-list mailing list