Multiline regex

Andreas Tawn andreas.tawn at ubisoft.com
Wed Jul 21 11:55:48 EDT 2010


> I could make it that simple, but that is also incredibly slow and on a
> file with several million lines, it takes somewhere in the league of
> half an hour to grab all the data. I need this to grab data from many
> many file and return the data quickly.
> 
> Brandon L. Harris

That's surprising.

I just made a file with 13 million lines of your data (447Mb) and read it with my code. It took a little over 36 seconds. There must be something different in your set up or the real data you've got.

Cheers,

Drea



More information about the Python-list mailing list