Python - Convert string-numeric to float
<p>I have the following string numeric values, and need to keep only the digit and decimals. I just can't find a right regular expression for this. </p>

<pre><code>s = [
      "12.45-280", # need to convert to 12.45280
      "A10.4B2", # need to convert to 10.42
]
</code></pre>

<p>Convert each alphabetical character in the string to empty char ""</p>

<pre><code>import re
num_string = []* len(s)
for i, string in enumerate(s):
    num_string[i] = re.sub('[a-zA-Z]+', '', string)
</code></pre>

python regex typeconverter