Check python string format?
Use time.strptime to parse from string to time struct. If the string doesn't match the format it raises ValueError
.
try with regular expresion:
import re
r = re.compile('.*/.*/.*:.*')
if r.match('x/x/xxxx xx:xx') is not None:
print 'matches'
you can tweak the expression to match your needs