我需要解析一些 srt 文件,并且我正在寻找与时间部分匹配的正则表达式(用于 JAVA)。我想要的是逐行读取文件,如果这些行是数字或时间部分,则跳过它们。
例如,给定:
1
00:00:01,357 --> 00:00:03,323
You took this case
without running it by me.
2
00:00:03,359 --> 00:00:04,825
- Jessica--
- That's enough. Dump it.
我想匹配线条
00:00:03,359 --> 00:00:04,825
和
2
提前致谢!