title: How to clean a .srt file without removing numbers that appear in the closed captions through VIM?
body: <p>It is known that <code>.srt</code> files are structured in blocks having 3 underlying parts, like this example:</p>
  
  <pre><code>228
  00:39:06,680 --&gt; 00:39:13,460
  Lorem ipsum dolor sit amet
  </code></pre>
  
  <p>Now, let us suppose that in the closed captions there are some excerpts representing the speech of a speaker quoting a literary opus of someone else, like this additional example:</p>
  
  <pre><code>228
  00:39:06,680 --&gt; 00:39:13,460
  According to Erasmus, book 1, chapter 23...
  </code></pre>
  
  <p><strong>Problem:</strong> I wish to extract only the text from the <code>.srt</code> by deleting the frame number, the frame duration without erasing, however, the cardinal numbers that appear in the closed captions as quotations through <strong>VIM</strong>.</p>
  
  <p><strong>Attempts:</strong> By using regular expression and the <code>substitute</code> command, I have found a way to "delete" the duration line with <code>:%s/\d\d:\d\d:\d\d,\d\d\d --&gt; \d\d:\d\d:\d\d,\d\d\d/ /g</code> and the numbers with the same idea, except now searching for each cardinal number entry with the option <code>/gc</code> to bypass those amidst the text.</p>
  
  <p>However, I have a considerable amount of such quotations to extract, for which the cardinal number should be maintained. Selecting <code>yes/no</code> for all entries turns into a tedious task. </p>
  
  <p>Since I have a lacking skill in using <code>regex</code>, I presume to say that there is, at least, a less "ugly" manner to perform the strategy aforementioned. Perhaps, a more elegant way to not only delete the unwanted portions, but also to recover a raw text without the frame and duration lines, like:</p>
  
  <pre><code>Lorem ipsum dolor sit met
  According to Erasmus, book 1, chapter 23...
  </code></pre>
  
  <p>Someone knows how to do that?</p>