regex over files

Steve Holden steve at holdenweb.com
Tue Apr 26 08:34:25 EDT 2005


Robin Becker wrote:
> Steve Holden wrote:
> ......
> 
>>
>> I seem to remember that the Medusa code contains a fairly good 
>> overlapped search for a terminator string, if you want to chunk the file.
>>
>> Take a look at the handle_read() method of class async_chat in the 
>> standard library's asynchat.py.
> 
> .....
> thanks I'll give it a whirl
> 
Whoops, I don't think it's a regex search :-(

You should be able to adapt the logic fairly easily, I hope.

regards
  Steve
-- 
Steve Holden        +1 703 861 4237  +1 800 494 3119
Holden Web LLC             http://www.holdenweb.com/
Python Web Programming  http://pydish.holdenweb.com/




More information about the Python-list mailing list