EDIT: DONE ALREADY! THANKS
Code as below:
import ast,re
a = "('=====================================', '30/06/2016 17:15 T001 -------------------------------')" t=ast.literal_eval(a) z=re.compile(r"(\d\d/\d\d/\d\d\d\d)\s(\d\d:\d\d)") m = z.match(t[1]) if m: print("date: {}, time {}".format(m.group(1),m.group(2)))