fork download
  1. a = 'cDOT_stv3027_esx_vdi01_07-24-2021_02.00.00.0443'
  2. prefix, *mid, date, time = a.split('_')
  3. print(prefix, '_'.join(mid), date, time, sep="\n")
Success #stdin #stdout 0.02s 9272KB
stdin
Standard input is empty
stdout
cDOT
stv3027_esx_vdi01
07-24-2021
02.00.00.0443