Regex on a huge text

Dan redalastor at gmail.com
Fri Aug 22 11:24:44 EDT 2008


I'm looking on how to apply a regex on a pretty huge input text (a file
that's a couple of gigabytes). I found finditer which would return results
iteratively which is good but it looks like I still need to send a string
which would be bigger than my RAM. Is there a way to apply a regex directly
on a file?

Any help would be appreciated.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080822/368757b0/attachment.html>


More information about the Python-list mailing list