streaming a file object through re.finditer

Daniel Bickett dbickett at gmail.com
Wed Feb 2 22:22:27 EST 2005


Erick wrote:
> True, but it doesn't work with multiline regular expressions :(

If your intent is for the expression to traverse multiple lines (and
possibly match *across* multiple lines,) then, as far as I know, you
have no choice but to load the whole file into memory.

-- 
Daniel Bickett
dbickett at gmail.com
http://heureusement.org/



More information about the Python-list mailing list