read a text field in Python using regular expressions


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!
read a text field in Python using regular expressions
===



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!