import reobj = re.match('.*(\d{2}-\d{2} \d{2}:\d{2})', "\n09-22 13:27", re.S)if obj: print(obj.group(1))
Standard input is empty
09-22 13:27
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!