To use the form, simply paste the VTT code into the first box, click the “extract” button,  and if everything goes well, this will spit out plain text into the lower box.

The code is run in your browser – the input is sent to our servers.

Using positive lookbehind

Sample WebVTT text;

WEBVTT
Kind: captions
Language: en
Style:
::cue(c.colorCCCCCC) { color: rgb(204,204,204);
 }
::cue(c.colorE5E5E5) { color: rgb(229,229,229);
 }
##

00:00:00.630 --> 00:00:01.119 align:start position:0%
 
[Music]

00:00:01.119 --> 00:00:01.129 align:start position:0%
[Music]
 

00:00:01.129 --> 00:00:04.190 align:start position:0%
[Music]
in<00:00:02.129><c> today's</c><00:00:02.550><c> lesson</c><c.colorE5E5E5><00:00:02.820><c> we</c><00:00:03.419><c> are</c><00:00:03.449><c> going</c><00:00:03.780><c> to</c><00:00:04.049><c> learn</c></c>

00:00:04.190 --> 00:00:04.200 align:start position:0%
in today's lesson<c.colorE5E5E5> we are going to learn
 </c>

00:00:04.200 --> 00:00:06.470 align:start position:0%
in today's lesson<c.colorE5E5E5> we are going to learn
highlighting<00:00:04.799><c> and</c><00:00:04.980><c> shading</c><00:00:05.339><c> in</c></c><c.colorCCCCCC><00:00:05.609><c> serif</c><00:00:05.970><c> drop</c><00:00:06.240><c> +</c></c>

00:00:06.470 --> 00:00:06.480 align:start position:0%
highlighting and shading in<c.colorCCCCCC> serif drop +
 </c>

00:00:06.480 --> 00:00:09.379 align:start position:0%
highlighting and shading in<c.colorCCCCCC> serif drop +
x8<00:00:07.040><c> there</c><00:00:08.040><c> are</c><00:00:08.220><c> probably</c><00:00:08.610><c> zillions</c></c><c.colorE5E5E5><00:00:09.059><c> of</c><00:00:09.240><c> other</c></c>

00:00:09.379 --> 00:00:09.389 align:start position:0%
x8 there are probably zillions<c.colorE5E5E5> of other
 </c>

00:00:09.389 --> 00:00:11.540 align:start position:0%
x8 there are probably zillions<c.colorE5E5E5> of other
ways</c><c.colorCCCCCC><00:00:09.660><c> to</c><00:00:09.900><c> do</c><00:00:10.019><c> this</c>
avatar

Carl Mann

Full-Stack Developer

Former owner of an I.T. consultancy business in Southampton, NY, Carl gave up the hustle-bustle of I.T. to live his dream of becoming a full-time application developer. When not busy blogging or programming, you might find Carl out taking a ride on his motorcycle or hiking off in some woodland trails.