title: Using RegEx to find number followed by dot
body: <p>I am trying to find the index of the reference in a list of references. Let me illustrate:</p>
  
  <p>This is a list of references I scraped off a website:</p>
  
  <pre><code>ref = "&lt;p class="references" style="font-size:15px"&gt;1. Mcminn. (2003). Last's Anatomy. Elsevier Australia. ISBN:0729537528. &lt;a href="http://books.google.com/books?vid=ISBN0729537528"&gt;Read it at Google Books&lt;/a&gt; - &lt;a href="http://www.amazon.com/gp/product/0729537528"&gt;Find it at Amazon&lt;/a&gt;&lt;br&gt;
  2. Netter, F. H. (2019). Atlas of human anatomy. Philadelphia, PA: Elsevier.&lt;/p&gt;"
  </code></pre>
  
  <p>I thought I could get the index of reference (i.e. "1." and "2.") by using this:</p>
  
  <pre><code>result = list(map(int, [e for e in re.split("[^0-9]", ref) if e != '']))
  </code></pre>
  
  <p>But I'm getting all numbers: <code>[1, 2003, 729537528, 2, 2019]</code></p>
  
  <p>How do I only get the list of reference index, i.e. <code>[1, 2]</code> One way I guess is to find numbers followed by a dot, but I don't know how.</p>