How can I use Python regular expressions on the following variables to extract the date?
a = 'abc_de_00_abcd_20130605.zip'
a = 'abc_de_20130605_00_abcd.zip'
I tried the following but it doesn't work.
re.match(r'[0-9]{8}',a)
How can I use Python regular expressions on the following variables to extract the date?
a = 'abc_de_00_abcd_20130605.zip'
a = 'abc_de_20130605_00_abcd.zip'
I tried the following but it doesn't work.
re.match(r'[0-9]{8}',a)