File size: 264 Bytes
911c66e
 
 
 
 
 
 
1
2
3
4
5
6
7
8
import re

text = "  🔊 Chunk 63/63:  98%|###########################################3| 62/63 [05:00<00:03,  3.21s/it]"
match = re.search(r'\[(\d+:\d+)<(\d+:\d+)', text)
if match:
    print(f"Elapsed: {match.group(1)}")
    print(f"Remaining: {match.group(2)}")