Skip to content
Advertisement

Tag: srt

parsing a .srt file with regex

I am doing a small script in python, but since I am quite new I got stuck in one part: I need to get timing and text from a .srt file. For example, from I need to get: 00:00:01,000 –> 00:00:04,074 and Subtitles downloaded from www.OpenSubtitles.org. I have already managed to make the regex for timing, but i am stuck

Advertisement