I use regex to create an array of subtitles at any time that includes [number, start, end, text]
/(\\d+)\\n([\\d:,]+)\\s+-{2}\\>\\s+([\\d:,]+)\\n([\\s\\S]*