Regular expression for different date formats in Python

Michael Torrie torriem at gmail.com
Mon Nov 26 17:05:14 CET 2012


On 11/26/2012 06:15 AM, undesputed.hackerz at gmail.com wrote:
> I am a beginner in python and need help with writing a regular
> expression for date and time to be fetched from some html documents.

Would the "parser" module from the third-party dateutil module work for you?

http://pypi.python.org/pypi/python-dateutil
http://labix.org/python-dateutil#head-c0e81a473b647dfa787dc11e8c69557ec2c3ecd2

I don't believe the library is updated for Python 3 yet, sadly.  But I
bet it could be ported fairly easily.  I think it's pure python.





More information about the Python-list mailing list