read a text field in Python using regular expressions
Posted
by David
on Stack Overflow
See other posts from Stack Overflow
or by David
Published on 2010-03-15T10:41:21Z
Indexed on
2010/03/15
10:59 UTC
Read the original article
Hit count: 472
I have text file, like
FILED AS OF DATE: 20090209
DATE AS OF CHANGE: 20090209
I need to find the position using FILED AS OF DATE:
and read the date. I know how to do it using python strings. But using a regular expression seems cooler:)
Btw, how to parse the date?
Thanks!
© Stack Overflow or respective owner