fork download
  1. import re
  2. p_text="""ref = <p class="references" style="font-size:15px">1. Mcminn. (2003). Last's Anatomy. Elsevier Australia. ISBN:0729537528. <a href="http://books.google.com/books?vid=ISBN0729537528">Read it at Google Books</a> - <a href="http://w...content-available-to-author-only...n.com/gp/product/0729537528">Find it at Amazon</a><br>
  3. 2. Netter, F. H. (2019). Atlas of human anatomy. Philadelphia, PA: Elsevier.</p>"""
  4. result = list(map(int, re.findall(r"(?<![^\s>])([0-9]+)\. ", p_text)))
  5. print(result)
Success #stdin #stdout 0.02s 27744KB
stdin
Standard input is empty
stdout
[1, 2]