Re: Re: Securing files

2011-02-23 Thread Dr Vangel
On Wed, Feb 23, 2011 at 11:48 AM, Timothy W. Grove wrote: Hello Folks, In a python application that I'm developing I've been asked to add security to databases that the program might create and access; the database is to be password protected by its creator. The application uses an SQLite

Re: pattern matching

2011-02-23 Thread Dr Vangel
if I have a string such as '01/12/2011' and i want to reformat it as '20110112', how do i pull out the components of the string and reformat them into a DDMM format? I have: import re test = re.compile('dd/') f = open('test.html') # This file contains the html dates for line in f: if