Getting the match value of re.search python
<p>I'm pulling some data out of the web utilizing python in the Jupyter notebook. I have pulled down the data, parsed, and created the data frame. I need to extract a number out of a string that I have in the data frame. I utilizing this regex to do it:</p>

<pre><code>for note in df["person_notes"]:
    print(re.search(r'\d+', note))
</code></pre>

<p>and the outcome is the following:</p>

<pre><code>&lt;_sre.SRE_Match object; span=(53, 55), match='89'&gt;
</code></pre>

<p>How can I get just the match number; in this line would be 89. I tried to convert the whole line to <code>str()</code> and the <code>replace()</code>, but not all lines have the <code>span=(number, number)</code> iqual. Thank you in advance!</p>