fork download
  1. import re
  2.  
  3. s = '2021/12/23 13:00 14:00 2021/12/24 13:00 14:00 15:00'
  4.  
  5. for i in re.findall(r'\d+/\d+/\d+(?:\s\d+\:\d+)+', s): print (i.split())
Success #stdin #stdout 0.02s 9444KB
stdin
Standard input is empty
stdout
['2021/12/23', '13:00', '14:00']
['2021/12/24', '13:00', '14:00', '15:00']