Matching a time interval using regex
Rather than using \d, you might want to limit the matcher to valid ranges. 

\d{2}:([0-5]\d:){2},\d{3}


would match either of the timestamps and it would prevent someone from entering

11:88:88,888 --&gt; 12:99:99,999