title: Delete certain numbers among other numbers in a list in Python
body: <p>I want to delete special numbers from a list that contains also other numbers which should not be affected.</p>
  <p>The list looks like this:</p>
  <pre><code>[1, 
  , 00:00:03,950, 00:00:06,840, 
  , effective, argumentation, central, 
  
  , 2, 
  , 00:00:06,840, 00:00:09,180, 
  , term, thinking, topic, 
  
  , 3, 
  , 00:00:09,180, 00:00:10,830, 
  , previously, section, course, 
  
  ... and so on]
  </code></pre>
  <p>Now, I want to delete only the single numbers plus the comma afterwards (here: 1, 2, 3) but not the timestamps (or any part of the timestamps).</p>
  <p>What should be considered, is that these numbers could theoretically increase to 10 or even more digits, there is no constraint.</p>
  <p>For this task, I have tried the following regular expressions (among others):</p>
  <p><code>result = re.sub(r&quot;^\d{1,},$&quot;, &quot;&quot;, data)</code></p>
  <p><code>result = re.sub(r&quot;^\d{1,},\n&quot;, &quot;&quot;, data)</code></p>
  <p>But nothing I can think of works for my task. Either a part of the timestamps is also deleted or the numbers in question are not deleted at all.</p>
  <p>Can anyone please help?</p>
  <p>Thank you very much!</p>