How to get last 3 digits after comma?
<p>For a number that is 32,146 ...how do I find only 146? Is this able to be done?</p>

<pre><code>findnum = '32,146'
return findnum
</code></pre>

<p>If you want the number you can do:</p>

<pre><code># get number by ignoring commas
number = int(findnum.replace(',',''))

# get last three digits
last_three = number % 1000
</code></pre>

<p>This will result in <code>146</code> (int) and not <code>'146'</code> (string)</p>

<p>Example:</p>

<pre><code>&gt;&gt;&gt; findnum = '32,146'
&gt;&gt;&gt; number = int(findnum.replace(',',''))
&gt;&gt;&gt; number % 1000
146
</code></pre>

python regex