regex over files

Robin Becker robin at reportlab.com
Mon Apr 25 11:01:45 EDT 2005


Is there any way to get regexes to work on non-string/unicode objects. I would 
like to split large files by regex and it seems relatively hard to do so without 
having the whole file in memory. Even with buffers it seems hard to get regexes 
to indicate that they failed because of buffer termination and getting a partial 
match to be resumable seems out of the question.

What interface does re actually need for its src objects?
-- 
Robin Becker




More information about the Python-list mailing list