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.

enter image description here

if want delete newlines (to remove space/lines), instead:

^\[.*\]\r\n 

Comments

Popular posts from this blog

matlab - error with cyclic autocorrelation function -

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

c# - What is a good .Net RefEdit control to use with ExcelDna? -