I am parsing an email and trying to get the numeric values from the email. My algorithm splits the email into an array split by spaces, and just extracts the values from that array. Problem is the html gets picked up, so an element in the array looks like this
pre-wrap;">32.35</pre>
</td>
</tr>
I want to just extract the digit and tried to filter it out, but its ignoring the decimal
this is the method
extractedValue = ''.join(filter(lambda i: i.isdigit(), firstString))
this returns 3235 and ignores the decimal.
What is the work around for this?