Python and PHP encryption/decryption

2009-08-19 Thread Jean-Claude Neveu
I'm looking for a recommendation about encryption/decryption packages for Python. I'm working on a project that will require me to store some values in a database in encrypted format. I'll be storing them from a PHP script and retrieving them (decrypting them) using Python. I'm currently usin

Puzzled about this regex

2009-04-17 Thread Jean-Claude Neveu
Hello, I wonder if someone could tell me where I am going wrong with my regular expression, please. My regex only matches the text I'm looking for (a number followed by a distance unit) when it appears at the beginning of the string. But I am not using the ^ character (which would indicate th

Regular Expression Help

2009-04-11 Thread Jean-Claude Neveu
Hello, I was wondering if someone could tell me where I'm going wrong with my regular expression. I'm trying to write a regexp that identifies whether a string contains a correctly-formatted currency amount. I want to support dollars, UK pounds and Euros, but the example below deliberately o

Re: Using poplib to parse headers - Thank You All!

2008-07-06 Thread Jean-Claude Neveu
Tim Roberts wrote: You've received some very confusing advice in this thread. Alex had the right answer, but I want to expand it a bit. [...] poplib.retr gives you a string. You need to hand that string to the email module, and you do that using "email.message_from_string". This is just to