import redescription = "Tracks\n======\n0:00 Tonebox - Frozen Code\n6:00 SHIKIMO & DOOMROAR - Getaway\n9:30 d.notive - Streets of Passion\n14:55 Perturbator - Neo Tokyo"print("This is the string:\n{}".format(description))results = re.findall(r'(?<!\d:)(?<!\d)[0-5]?\d:[0-5]\d(?!:?\d)', description)print("These are the results:\n{}".format(results))
Standard input is empty
This is the string: Tracks ====== 0:00 Tonebox - Frozen Code 6:00 SHIKIMO & DOOMROAR - Getaway 9:30 d.notive - Streets of Passion 14:55 Perturbator - Neo Tokyo These are the results: ['0:00', '6:00', '9:30', '14:55']
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!