Regex Matching on Readline()

2007-12-20 Thread jwwest
Anyone have any trouble pattern matching on lines returned by readline? Here's an example: string = "Accounting - General" pat = ".+\s-" Should match on "Accounting -". However, if I read that string in from a file it will not match. In fact, I can't get anything to match except ".*". I'm almost

Re: Regex Matching on Readline()

2007-12-20 Thread jwwest
On Dec 20, 2:13 pm, John Machin <[EMAIL PROTECTED]> wrote: > On Dec 21, 6:50 am, jwwest <[EMAIL PROTECTED]> wrote: > > > > > Anyone have any trouble pattern matching on lines returned by > > readline? Here's an example: > > > string = "Accoun

Python CGI - Presenting a zip file to user

2008-01-02 Thread jwwest
Hi all, I'm working on a cgi script that zips up files and presents the zip file to the user for download. It works fine except for the fact that I have to overwrite the file using the same filename because I'm unable to delete it after it's downloaded. The reason for this is because after sending

Re: Python CGI - Presenting a zip file to user

2008-01-02 Thread jwwest
On Jan 2, 8:56 pm, Justin Ezequiel <[EMAIL PROTECTED]> wrote: > On Jan 3, 7:50 am, jwwest <[EMAIL PROTECTED]> wrote: > > > > > Hi all, > > > I'm working on a cgi script that zips up files and presents the zip > > file to the user for download. It