#!/usr/bin/python

import re

test_str = ''

m = re.match(r'.+?(\d{2}\:\d{2}\:\d{2})', test_str)

if m:
    print m
df9023a742d3bc8abcb23cc3284b3e101964eb10
#!/usr/bin/python

import re

test_str = ''

m = re.match(r'.+?(\d{2}\:\d{2}\:\d{2})', test_str)

if m:
    print m