I have a string like below, and I want to get both the two number "28" and "1", but right now I can only get "28" by my code. Please help me with this.
import re
content="""<span class="lineNum"> 28 </span><span class="lineCov"> 1 : get_pid_file(const char *file, pid_t *pid)</span>"""
pattern = "(\d+)"
ret = re.search(pattern,content)
if ret:
print "find: %s" % ret.group()