Using REGEX to removed Closed Captions from a SRT Subtitles file in Notepad++ -
i editing srt subtitles file in notepad++ , need remove "closed captions" parts (which used hearing disabled) eg.
354 00:03:11,108 --> 00:03:12,608 [bang] 355 00:03:25,956 --> 00:03:27,248 have not arrived 356 00:04:59,967 --> 00:05:02,301 [television plays] 357 00:03:25,956 --> 00:03:27,248 mama. 358 00:03:27,332 --> 00:03:30,001 mama! 359 00:04:25,641 --> 00:04:26,557 [bang] 360 00:04:59,967 --> 00:05:02,301 [car door closes]
so in above text, lines " [.....] " removed, understand can done regular expressions?
make sure "regular expressions" option checked.
try replacing regex:
^\[.*\]$
with empty string.
if want delete newlines (to remove space/lines), instead:
^\[.*\]\r\n
Comments
Post a Comment